From 4e31caf4d61b7eb3a052d50c25b21daddb9f0d81 Mon Sep 17 00:00:00 2001 From: Polesznyák Márk Date: Fri, 16 Jan 2026 11:47:35 +0100 Subject: feat(dwm): add mute keybind --- dwm/config.def.h | 2 ++ dwm/config.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'dwm') diff --git a/dwm/config.def.h b/dwm/config.def.h index 107803c..2ffd60a 100644 --- a/dwm/config.def.h +++ b/dwm/config.def.h @@ -89,6 +89,7 @@ static const char *previouscmd[] = {"adb", "shell", "input", "keyevent", "88", N static const char *volumeup[] = {"pulsemixer", "--change-volume", "+5", NULL}; static const char *volumedown[] = {"pulsemixer", "--change-volume", "-5", NULL}; static const char *volumereset[] = {"pulsemixer", "--set-volume", "65", NULL}; +static const char *volumemute[] = {"pulsemixer", "--toggle-mute", NULL}; static const char *emojicmd[] = {"simplemoji", "-szxpt", "dark", "-m", "#e0def4", "--background-color", "#1e1e2e"}; static const char *qalccmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", @@ -138,6 +139,7 @@ static const Key keys[] = { {MODKEY | ShiftMask, XK_o, spawn, {.v = volumeup}}, {MODKEY | ShiftMask, XK_l, spawn, {.v = volumedown}}, {MODKEY | ShiftMask, XK_r, spawn, {.v = volumereset}}, + {MODKEY | ShiftMask, XK_m, spawn, {.v = volumemute}}, }; /* button definitions */ diff --git a/dwm/config.h b/dwm/config.h index 107803c..2ffd60a 100644 --- a/dwm/config.h +++ b/dwm/config.h @@ -89,6 +89,7 @@ static const char *previouscmd[] = {"adb", "shell", "input", "keyevent", "88", N static const char *volumeup[] = {"pulsemixer", "--change-volume", "+5", NULL}; static const char *volumedown[] = {"pulsemixer", "--change-volume", "-5", NULL}; static const char *volumereset[] = {"pulsemixer", "--set-volume", "65", NULL}; +static const char *volumemute[] = {"pulsemixer", "--toggle-mute", NULL}; static const char *emojicmd[] = {"simplemoji", "-szxpt", "dark", "-m", "#e0def4", "--background-color", "#1e1e2e"}; static const char *qalccmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", @@ -138,6 +139,7 @@ static const Key keys[] = { {MODKEY | ShiftMask, XK_o, spawn, {.v = volumeup}}, {MODKEY | ShiftMask, XK_l, spawn, {.v = volumedown}}, {MODKEY | ShiftMask, XK_r, spawn, {.v = volumereset}}, + {MODKEY | ShiftMask, XK_m, spawn, {.v = volumemute}}, }; /* button definitions */ -- cgit v1.2.3