summaryrefslogtreecommitdiffstats
path: root/.config/awesome/functions/helper.lua
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2017-07-09 18:37:37 +0100
committerJonathan McCrohan <jmccrohan@gmail.com>2017-07-09 18:37:37 +0100
commitaefae07bde1937197dabea9233c484efd8228252 (patch)
tree1574e1fe7fc72dcea6703dc64f975ae2339ba473 /.config/awesome/functions/helper.lua
downloadawesome-aefae07bde1937197dabea9233c484efd8228252.tar.gz
Initial commit of my awesome configuration
Diffstat (limited to '.config/awesome/functions/helper.lua')
-rw-r--r--.config/awesome/functions/helper.lua17
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
+-- }}}