diff --git a/config.def.h b/config.def.h index 47d9257..369ceec 100644 --- a/config.def.h +++ b/config.def.h @@ -113,6 +113,9 @@ static const char *volup[] = { "pactl", "set-sink-volume", "0", "+5%", NULL }; static const char *voldown[] = { "pactl", "set-sink-volume", "0", "-5%", NULL }; static const char *volmute[] = { "pactl", "set-sink-mute", "0", "toggle", NULL }; +static const char *backlightup[] = { "light", "-A", "10", NULL }; +static const char *backlightdown[] = { "light", "-U", "10", NULL }; + static const char *lockcmd[] = { "slock", NULL }; static const char *dmenucmd[] = { "dmenu_run", "-g", "15", "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbordercolor, "-sf", selfgcolor, NULL }; @@ -125,6 +128,8 @@ static const Key keys[] = { { ShiftMask, XK_Print, spawn, {.v = screenshotarea } }, { 0, XF86XK_AudioRaiseVolume, spawn, {.v = volup } }, { 0, XF86XK_AudioLowerVolume, spawn, {.v = voldown } }, + { 0, XF86XK_MonBrightnessUp, spawn, {.v = backlightup } }, + { 0, XF86XK_MonBrightnessDown, spawn, {.v = backlightdown } }, { 0, XF86XK_AudioMute, spawn, {.v = volmute } }, { SUPERKEY, XK_p, spawn, {.v = dmenucmd } }, { SUPERKEY, XK_Return, spawn, {.v = termcmd } }, diff --git a/config.h b/config.h index 47d9257..369ceec 100644 --- a/config.h +++ b/config.h @@ -113,6 +113,9 @@ static const char *volup[] = { "pactl", "set-sink-volume", "0", "+5%", NULL }; static const char *voldown[] = { "pactl", "set-sink-volume", "0", "-5%", NULL }; static const char *volmute[] = { "pactl", "set-sink-mute", "0", "toggle", NULL }; +static const char *backlightup[] = { "light", "-A", "10", NULL }; +static const char *backlightdown[] = { "light", "-U", "10", NULL }; + static const char *lockcmd[] = { "slock", NULL }; static const char *dmenucmd[] = { "dmenu_run", "-g", "15", "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbordercolor, "-sf", selfgcolor, NULL }; @@ -125,6 +128,8 @@ static const Key keys[] = { { ShiftMask, XK_Print, spawn, {.v = screenshotarea } }, { 0, XF86XK_AudioRaiseVolume, spawn, {.v = volup } }, { 0, XF86XK_AudioLowerVolume, spawn, {.v = voldown } }, + { 0, XF86XK_MonBrightnessUp, spawn, {.v = backlightup } }, + { 0, XF86XK_MonBrightnessDown, spawn, {.v = backlightdown } }, { 0, XF86XK_AudioMute, spawn, {.v = volmute } }, { SUPERKEY, XK_p, spawn, {.v = dmenucmd } }, { SUPERKEY, XK_Return, spawn, {.v = termcmd } }, diff --git a/dwm b/dwm index c3610cd..c35435b 100755 Binary files a/dwm and b/dwm differ diff --git a/dwm.o b/dwm.o index 48d681c..fe01282 100644 Binary files a/dwm.o and b/dwm.o differ