diff --git a/config.h b/config.h index 21cc05d..bb60e02 100644 --- a/config.h +++ b/config.h @@ -104,19 +104,34 @@ static const char *nmcedit[] = { "nm-connection-editor" , NULL }; static const char *top[] = { "kitty" , "htop" , NULL }; -static const char *briup[] = { "brightnessctl", "set", "+10%" }; -static const char *bridown[] = { "brightnessctl", "set", "10%-" }; +static const char *volup[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "+2%", NULL }; +static const char *voldown[] = { "pactl", "set-sink-volume", "@DEFAULT_SINK@", "-2%", NULL }; -static const char *intip[] = { "bash" , "/home/aji/.dwm/aji.sh", "info"}; +static const char *briup[] = { "brightnessctl", "set", "+10%", NULL }; +static const char *bridown[] = { "brightnessctl", "set", "10%-", NULL }; + +static const char *intip[] = { "bash" , "/home/aji/.dwm/aji.sh", "info", NULL}; #include "aji.c" #include static const Key keys[] = { /* modifier key function argument */ + + { 0, XF86XK_AudioLowerVolume, spawn, {.v = voldown} }, + { 0, XF86XK_AudioRaiseVolume, spawn, {.v = volup} }, + { 0, XF86XK_MonBrightnessDown, spawn, {.v = bridown} }, { 0, XF86XK_MonBrightnessUp, spawn, {.v = briup} }, + + { MODKEY, XK_comma, spawn, {.v = voldown} }, + { MODKEY, XK_period, spawn, {.v = volup} }, + + { MODKEY|Mod1Mask, XK_comma, spawn, {.v = bridown} }, + { MODKEY|Mod1Mask, XK_period, spawn, {.v = briup} }, + { MODKEY, XK_i, spawn, {.v = intip} }, + { MODKEY, XK_BackSpace, view, {0} }, { MODKEY, XK_a, view, {.ui = ~0} }, // Select all tags. Cancel it with `MODKEY + [tag key]`. { MODKEY|ControlMask|ShiftMask, XK_p, tag, {.ui = ~0} }, // Pin current window to all tags. Cancel it with `MODKEY + Shift + [tag key]`.