aboutsummaryrefslogtreecommitdiff
path: root/config.dot/awesome.link/functions.lua
diff options
context:
space:
mode:
Diffstat (limited to 'config.dot/awesome.link/functions.lua')
-rw-r--r--config.dot/awesome.link/functions.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/config.dot/awesome.link/functions.lua b/config.dot/awesome.link/functions.lua
index aa98502..f596053 100644
--- a/config.dot/awesome.link/functions.lua
+++ b/config.dot/awesome.link/functions.lua
@@ -2,3 +2,18 @@ function file_exists(name)
local f=io.open(name,"r")
if f~=nil then io.close(f) return true else return false end
end
+
+-- {{{ Helper functions
+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
+-- }}}