summaryrefslogtreecommitdiffstats
path: root/.config/awesome/functions/helper.lua
blob: a16080ec0a8a2172563bd018fda917267319c770 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
-- }}}