diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-08-17 17:24:31 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-08-17 17:24:31 -0300 |
commit | 3f7027442ad7da6d89413b2b868c697b2fadad53 (patch) | |
tree | 62e681597fdd03c95f800c8db74456d05b7d2d07 /config.dot/awesome.link/functions.lua | |
parent | 5353762c8a79621ca668c42dcd4104901cf144bf (diff) | |
parent | 2bc3a810fe82f69d59c92d555f4461cdd6012cf8 (diff) | |
download | awesome-3f7027442ad7da6d89413b2b868c697b2fadad53.tar.gz awesome-3f7027442ad7da6d89413b2b868c697b2fadad53.tar.bz2 |
Merge branch 'feature/stretch'
Diffstat (limited to 'config.dot/awesome.link/functions.lua')
-rw-r--r-- | config.dot/awesome.link/functions.lua | 15 |
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 +-- }}} |