X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=config.h%2Fdwm%2Fconfig.h;fp=config.h%2Fdwm%2Fconfig.h;h=84eda27e98eedf9f72dacc1034f190850862ef36;hb=ca4e74b1c8d81761eb0d5d8dc4a996928fae2745;hp=b0772c5dbc6c837ada9c12de87996e1dd27ef564;hpb=7e98ade222f877c9dfca1c189c8f8dabcc55a4ac;p=dotfiles.git diff --git a/config.h/dwm/config.h b/config.h/dwm/config.h index b0772c5..84eda27 100644 --- a/config.h/dwm/config.h +++ b/config.h/dwm/config.h @@ -1,5 +1,7 @@ /* See LICENSE file for copyright and license details. */ +#include + /* appearance */ static const unsigned int borderpx = 1; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ @@ -64,6 +66,11 @@ static const char *passmenu_type[] = { "passmenu", "--type", NULL }; static const char *scr[] = { "scr", NULL }; static const char *scr_sel[] = { "scr", "selection", NULL }; static const char *lock[] = { "slock", NULL }; +static const char *brightup[] = { "xbacklight", "-inc", "5", NULL }; +static const char *brightdown[] = { "xbacklight", "-inc", "5", NULL }; +static const char *volume_mute[] = {"pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL}; +static const char *volume_dec[] = {"pactl", "set-sink-volume", "@DEFAULT_SINK@", "-5%", NULL}; +static const char *volume_inc[] = {"pactl", "set-sink-volume", "@DEFAULT_SINK@", "+5%", NULL}; static Key keys[] = { /* modifier key function argument */ @@ -74,6 +81,11 @@ static Key keys[] = { { MODKEY, XK_Print, spawn, {.v = scr } }, { MODKEY|ShiftMask, XK_Print, spawn, {.v = scr_sel } }, { MODKEY|ShiftMask, XK_l, spawn, {.v = lock } }, + { 0 , XF86XK_MonBrightnessUp, spawn, {.v = brightup } }, + { 0 , XF86XK_MonBrightnessDown, spawn, {.v = brightdown } }, + { 0 , XF86XK_AudioLowerVolume, spawn, {.v = volume_dec } }, + { 0 , XF86XK_AudioMute, spawn, {.v = volume_mute } }, + { 0 , XF86XK_AudioRaiseVolume, spawn, {.v = volume_inc } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } },