aboutsummaryrefslogtreecommitdiff
path: root/dwm/config.h
diff options
context:
space:
mode:
authorCori Barker <coribarker2@gmail.com>2026-02-05 12:14:36 +0000
committerCori Barker <coribarker2@gmail.com>2026-02-05 12:14:36 +0000
commit07f0fdd5803a41651e615fb83b7f884c18d23815 (patch)
tree3c39d2587a2be17527660edc8c325de9c2c65e29 /dwm/config.h
parentc70ea026971c1471a6a39294db7aa4a0935ab478 (diff)
Patched st and dwm
Diffstat (limited to 'dwm/config.h')
-rwxr-xr-xdwm/config.h12
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 */