diff options
Diffstat (limited to '')
-rw-r--r-- | .config/awesome/functions/helper.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.config/awesome/functions/helper.lua b/.config/awesome/functions/helper.lua new file mode 100644 index 0000000..a16080e --- /dev/null +++ b/.config/awesome/functions/helper.lua @@ -0,0 +1,17 @@ +awful = require("awful") +beautiful = require("beautiful") + +-- {{{ Helper functions +local function client_menu_toggle_fn() + local instance = nil + + return function () + if instance and instance.wibox.visible then + instance:hide() + instance = nil + else + instance = awful.menu.clients({ theme = { width = 250 } }) + end + end +end +-- }}} |