[awesome] add microphone mute shortcut

This commit is contained in:
Simon Bruder 2018-10-11 14:39:51 +00:00
parent 4a0893fe2e
commit 981ebf9f5f
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -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.