summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bindings.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/bindings.lua b/bindings.lua
index b4da23f..8e08aee 100644
--- a/bindings.lua
+++ b/bindings.lua
@@ -14,6 +14,14 @@ function M.create(workspace)
awful.key({ modkey, "Mod1" }, "Delete", awesome.restart),
awful.key({ modkey }, "Pause", utils.screen_lock),
awful.key({ }, "XF86ScreenSaver", utils.screen_lock),
+ awful.key({ modkey, }, "Insert",
+ function ()
+ local s = mouse.screen
+ for o, _ in pairs(s.outputs) do
+ print('toggling ' .. o)
+ awful.spawn('randr_output_toggle ' .. o)
+ end
+ end),
-- something of a hack: diziet is configured to send F13/XF86Tools on lid close
-- this should trigger a screen lock if HDMI cable is not connected