aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2024-09-29 11:40:25 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2024-09-29 11:40:25 +0530
commitf21899671bc5c8e6b9db93e3da66335b10416b98 (patch)
tree0b6f37e8abfc6abfda62a7ac69a47ea6fabb2482 /config.def.h
parentc3399fe32abe61864c6ba22221c19694f4031fc7 (diff)
(patch): XF86keysym.patch
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index bf9f43e..8b0f4fe 100644
--- a/config.def.h
+++ b/config.def.h
@@ -1,3 +1,5 @@
+#include <X11/XF86keysym.h>
+
/* Taken from https://github.com/djpohly/dwl/issues/466 */
#define COLOR(hex) { ((hex >> 24) & 0xFF) / 255.0f, \
((hex >> 16) & 0xFF) / 255.0f, \
@@ -184,6 +186,9 @@ static const Key keys[] = {
#define CHVT(n) { WLR_MODIFIER_CTRL|WLR_MODIFIER_ALT,XKB_KEY_XF86Switch_VT_##n, chvt, {.ui = (n)} }
CHVT(1), CHVT(2), CHVT(3), CHVT(4), CHVT(5), CHVT(6),
CHVT(7), CHVT(8), CHVT(9), CHVT(10), CHVT(11), CHVT(12),
+ { 0,XF86XK_AudioRaiseVolume, spawn,{.v = upvol } },
+ { 0,XF86XK_AudioLowerVolume, spawn,{.v = downvol } },
+ { 0,XF86XK_AudioMute,spawn,{.v = mute } },
};
static const Button buttons[] = {