diff --git a/config.def.h b/config.def.h index 471a0eb..1e416d5 100644 --- a/config.def.h +++ b/config.def.h @@ -64,6 +64,8 @@ static const char *sobercmd[] = { "flatpak", "run", "org.vinegarhq.Sober", NULL static const char *steamcmd[] = { "steam", NULL }; static const char *browsercmd[] = { "librewolf", NULL }; +#include + static const Key keys[] = { /* modifier key function argument */ { MODKEY, XK_space, spawn, {.v = dmenucmd } }, @@ -89,6 +91,13 @@ static const Key keys[] = { { MODKEY, XK_s, spawn, {.v = sobercmd } }, { MODKEY, XK_g, spawn, {.v = steamcmd } }, { MODKEY, XK_b, spawn, {.v = browsercmd } }, + + { 0, XF86XK_AudioMute, spawn, SHCMD("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; kill -44") }, + { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("wpctl set-volume @DEFAULT_AUDIO_SINK@ 0%- && wpctl set-volume @DEFAULT_AUDIO_SINK@ 3%+; kill -44") }, + { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("wpctl set-volume @DEFAULT_AUDIO_SINK@ 0%+ && wpctl set-volume @DEFAULT_AUDIO_SINK@ 3%-; kill -44") }, + { 0, XF86XK_MonBrightnessUp, spawn, SHCMD("brightnessctl set +10%; kill -44") }, + { 0, XF86XK_MonBrightnessDown, spawn, SHCMD("brightnessctl set 10%-; kill -44") }, + TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2)