diff options
Diffstat (limited to '')
| -rw-r--r-- | config.def.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index 9339613..ef9d86a 100644 --- a/config.def.h +++ b/config.def.h @@ -2,6 +2,7 @@ ((hex >> 16) & 0xFF) / 255.0f, \ ((hex >> 8) & 0xFF) / 255.0f, \ (hex & 0xFF) / 255.0f } +#include <X11/XF86keysym.h> /* appearance */ static const int sloppyfocus = 1; /* focus follows mouse */ static const int bypass_surface_visibility = 0; /* 1 means idle inhibitors will disable idle tracking even if it's surface isn't visible */ @@ -125,6 +126,11 @@ static const enum libinput_config_tap_button_map button_map = LIBINPUT_CONFIG_TA #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } /* commands */ +// for cahnging the volume via alsa amixer // +static const char *upvol[] = { "amixer", "-q", "-c", "0", "set", "Master", "2+", NULL }; +static const char *downvol[] = { "amixer", "-q", "-c", "0", "set", "Master", "2-", NULL }; +// for muting/unmuting // +static const char *mute[] = { "amixer", "-q", "set", "Master", "toggle", NULL }; static const char *termcmd[] = { "alacritty", NULL }; static const char *menucmd[] = { "fuzzel", NULL }; static const char *lockcmd[] = { "swaylock", NULL }; @@ -173,6 +179,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[] = { |
