From f21899671bc5c8e6b9db93e3da66335b10416b98 Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Sun, 29 Sep 2024 11:40:25 +0530 Subject: (patch): XF86keysym.patch --- config.def.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'config.def.h') 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 + /* 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[] = { -- cgit v1.2.3