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 -- }}}