From ae5f6468c73e1fbb142d4d9356945fe6ad4fb77e Mon Sep 17 00:00:00 2001 From: aleksav013 Date: Tue, 18 May 2021 09:02:18 +0200 Subject: XF86keysym --- config.def.h | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index d2e901b..841a708 100644 --- a/config.def.h +++ b/config.def.h @@ -1,3 +1,17 @@ +/** + * dwmconfig.h + * Hardware multimedia keys + */ +/* Somewhere at the beginning of config.h include: */ + +/* + You obviously need the X11 development package installed, but here is the upstream copy + of this header if you can't bother using the contents of your own hard drive. ;-P + https://cgit.freedesktop.org/xorg/proto/x11proto/tree/XF86keysym.h +*/ + +#include + /* See LICENSE file for copyright and license details. */ /* appearance */ @@ -5,7 +19,7 @@ static const unsigned int borderpx = 1; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ -static const char *fonts[] = { "Liberation Mono:size=10" }; +static const char *fonts[] = { "xft:Inconsolata Nerd Font Mono:style=Bold:pixelsize=14:antialias=true" /*"Liberation Mono:size=10"*/ }; static const char dmenufont[] = "monospace:size=10"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; @@ -95,6 +109,14 @@ static const Key keys[] = { TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) { MODKEY|ShiftMask, XK_q, quit, {0} }, + + { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("/usr/bin/pamixer -d 5;kill -44 $(pidof dwmblocks)") }, + { 0, XF86XK_AudioMute, spawn, SHCMD("/usr/bin/pamixer -t;kill -44 $(pidof dwmblocks)") }, + { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("/usr/bin/pamixer -i 5;kill -44 $(pidof dwmblocks)") }, + { 0, XF86XK_MonBrightnessUp, spawn, SHCMD("/usr/bin/xbacklight -inc 5;kill -40 $(pidof dwmblocks)") }, + { 0, XF86XK_MonBrightnessDown, spawn, SHCMD("/usr/bin/xbacklight -dec 5;kill -40 $(pidof dwmblocks)") }, + + }; /* button definitions */ -- cgit v1.2.3