diff options
Diffstat (limited to 'dwm/config.h')
| -rwxr-xr-x | dwm/config.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/dwm/config.h b/dwm/config.h index 73098dd..d39428d 100755 --- a/dwm/config.h +++ b/dwm/config.h @@ -1,3 +1,5 @@ +#include <X11/XF86keysym.h> + /* See LICENSE file for copyright and license details. */ /* appearance */ @@ -62,12 +64,14 @@ static const char *termcmd[] = { "st", NULL }; static const char *webcmd[] = { "waterfox", NULL }; static const char *xlockmodes[] = { "spiral", "space", "helix", "grav" }; static const char *lockcmd[] = { "xlock", "-mode", NULL, NULL }; +static const char *brightnessupcmd[] = { "brightnessctl", "s", "+10%", NULL }; +static const char *brightnessdowncmd[] = { "brightnessctl", "s", "10%-", NULL }; static const Key keys[] = { /* modifier key function argument */ - { MODKEY, XK_d, spawn, {.v = dmenucmd } }, - { MODKEY, XK_Return, spawn, {.v = termcmd } }, - { MODKEY, XK_g, spawn, {.v = webcmd } }, + { MODKEY, XK_d, spawn, {.v = dmenucmd } }, + { MODKEY, XK_Return, spawn, {.v = termcmd } }, + { MODKEY, XK_g, spawn, {.v = webcmd } }, { MODKEY|ShiftMask, XK_x, spawnlock, {0} }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, @@ -100,6 +104,8 @@ static const Key keys[] = { TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) { MODKEY|ShiftMask, XK_q, quit, {0} }, + { 0, XF86XK_MonBrightnessUp, spawn, {.v = brightnessupcmd } }, + { 0, XF86XK_MonBrightnessDown, spawn, {.v = brightnessdowncmd } }, }; /* button definitions */ |
