From 00755fd9e9e3e17668e4c18c65a4549e1ce68440 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sun, 28 Oct 2018 10:56:55 +0000 Subject: [PATCH] [awesome] add keyboard shortcut for autorandr --- home/.config/awesome/rc.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home/.config/awesome/rc.lua b/home/.config/awesome/rc.lua index 57b4ca3..9504a0f 100644 --- a/home/.config/awesome/rc.lua +++ b/home/.config/awesome/rc.lua @@ -405,7 +405,9 @@ clientkeys = gears.table.join( 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({}, "XF86AudioMicMute", function() awful.util.spawn_with_shell("pactl set-source-mute $(pacmd dump|grep -E '^set-default-source'|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), + + awful.key({}, "XF86Display", function() awful.util.spawn({"autorandr", "-c"}) end) ) -- Bind all key numbers to tags.