From dadee6bb08a63b33551981720a31a04bc8bf811f Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Tue, 3 Sep 2024 20:53:47 -0400 Subject: [PATCH] dwm: Use avizo for media keys Also adds support for the microphone mute key. --- home/dwm.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/home/dwm.nix b/home/dwm.nix index ef38b349..522adfe0 100644 --- a/home/dwm.nix +++ b/home/dwm.nix @@ -61,15 +61,17 @@ in static const char *dmenucmd[] = { "rofi", "-show", "drun", NULL }; static const char *quitcmd[] = { "kill", "xinit", NULL }; static const char *termcmd[] = { "kitty", NULL }; - static const char *brighter[] = { "brightnessctl", "set", "5%+", NULL }; - static const char *dimmer[] = { "brightnessctl", "set", "5%-", NULL }; + static const char *brighter[] = { "lightctl", "-d", "up", NULL }; + static const char *dimmer[] = { "lightctl", "-d", "down", NULL }; static const char *print[] = { "scrot", NULL }; - static const char *up_vol[] = { "wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@", "5%+", NULL }; - static const char *down_vol[] = { "wpctl", "set-volume", "@DEFAULT_AUDIO_SINK@", "5%-", NULL }; - static const char *mute_vol[] = { "wpctl", "set-mute", "@DEFAULT_AUDIO_SINK@", "toggle", NULL }; + static const char *up_vol[] = { "volumectl", "-d", "up", NULL }; + static const char *down_vol[] = { "volumectl", "-d", "down", NULL }; + static const char *mute_vol[] = { "volumectl", "-d", "toggle-mute", NULL }; + static const char *mute_mic[] = { "volumectl", "-d", "-m", "toggle-mute", NULL }; static const Key keys[] = { { 0, XF86XK_AudioMute, spawn, {.v = mute_vol } }, + { 0, XF86XK_AudioMicMute, spawn, {.v = mute_mic } }, { 0, XF86XK_AudioLowerVolume, spawn, {.v = down_vol } }, { 0, XF86XK_AudioRaiseVolume, spawn, {.v = up_vol } }, { 0, XF86XK_MonBrightnessDown, spawn, {.v = dimmer } },