From 6198fa41482e3ded6971207cd6a2cc52f4dd6b37 Mon Sep 17 00:00:00 2001 From: Arkhist Date: Sun, 16 Feb 2020 15:00:49 +0100 Subject: [PATCH] Add hide status bar hotkey Mod+P --- simple/init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/simple/init.lua b/simple/init.lua index affc18c..146e8cd 100644 --- a/simple/init.lua +++ b/simple/init.lua @@ -351,6 +351,15 @@ root.buttons(gears.table.join(awful.button({}, 3, function() mymainmenu:toggle() -- }}} -- {{{ Key bindings + +hotkey.registerKeys( + awful.key({ config.keys.modkey }, "p", + function() + local screen = awful.screen.focused() + screen.mywibox.visible = not screen.mywibox.visible + end, + { description = "hide status bar", group = "screen" })) + hotkey.registerKeys( awful.key({ config.keys.modkey, }, "s", hotkeys_popup.show_help, { description = "show help", group = "awesome" }),