diff options
author | Jonathan McCrohan <jmccrohan@gmail.com> | 2017-07-09 18:37:37 +0100 |
---|---|---|
committer | Jonathan McCrohan <jmccrohan@gmail.com> | 2017-07-09 18:37:37 +0100 |
commit | aefae07bde1937197dabea9233c484efd8228252 (patch) | |
tree | 1574e1fe7fc72dcea6703dc64f975ae2339ba473 /.config/awesome/functions/helper.lua | |
download | awesome-aefae07bde1937197dabea9233c484efd8228252.tar.gz |
Initial commit of my awesome configuration
Diffstat (limited to '.config/awesome/functions/helper.lua')
-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 +-- }}} |