From d4e9dacca7821928cc7f272af4f175100c9f486e Mon Sep 17 00:00:00 2001 From: Ambrose Date: Tue, 17 Feb 2026 12:27:55 -0500 Subject: Volume keys for ThinkPads --- config.def.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.def.h b/config.def.h index ddf73f2..becde16 100644 --- a/config.def.h +++ b/config.def.h @@ -72,6 +72,7 @@ static const char *email[] = { "claws-mail", NULL }; static const char *volup[] = { "sh", "-c", "pactl set-sink-volume @DEFAULT_SINK@ +5%", NULL }; static const char *voldown[] = { "sh", "-c", "pactl set-sink-volume @DEFAULT_SINK@ -5%", NULL }; static const char *volmute[] = { "sh", "-c", "pactl set-sink-mute @DEFAULT_SINK@ toggle", NULL }; +static const char *micmute[] = { "sh", "-c", "pactl set-source-mute @DEFAULT_SOURCE@ toggle", NULL }; static const Key keys[] = { /* modifier key function argument */ @@ -96,6 +97,7 @@ static const Key keys[] = { { 0, XF86XK_AudioRaiseVolume, spawn, {.v = volup } }, { 0, XF86XK_AudioLowerVolume, spawn, {.v = voldown } }, { 0, XF86XK_AudioMute, spawn, {.v = volmute } }, + { 0, XF86XK_AudioMicMute, spawn, {.v = micmute } }, { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, -- cgit v1.2.3