From 981ebf9f5fcde71c71b9d114011e8f1e414dbda9 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Thu, 11 Oct 2018 14:39:51 +0000 Subject: [PATCH] [awesome] add microphone mute shortcut --- home/.config/awesome/rc.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/.config/awesome/rc.lua b/home/.config/awesome/rc.lua index 3de1866..10b5a5f 100644 --- a/home/.config/awesome/rc.lua +++ b/home/.config/awesome/rc.lua @@ -404,7 +404,8 @@ clientkeys = gears.table.join( awful.key({}, "XF86MonBrightnessUp", function() awful.util.spawn({"xbacklight", "-inc", "10"}) end), awful.key({}, "XF86MonBrightnessDown", function() awful.util.spawn({"xbacklight", "-dec", "10"}) end), - awful.key({}, "XF86AudioMute", function() awful.util.spawn_with_shell("pactl set-sink-mute $(pacmd dump|grep -E '^set-default-sink'|cut -d' ' -f2) toggle") end) + awful.key({}, "XF86AudioMute", function() awful.util.spawn_with_shell("pactl set-sink-mute $(pacmd dump|grep -E '^set-default-sink'|cut -d' ' -f2) toggle") end), + awful.key({}, "XF86AudioMicMute", function() awful.util.spawn_with_shell("pactl set-source-mute $(pacmd dump|grep -E '^set-default-source'|cut -d' ' -f2) toggle") end) ) -- Bind all key numbers to tags.