From aefae07bde1937197dabea9233c484efd8228252 Mon Sep 17 00:00:00 2001 From: Jonathan McCrohan Date: Sun, 9 Jul 2017 18:37:37 +0100 Subject: Initial commit of my awesome configuration --- .config/awesome/functions/helper.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .config/awesome/functions/helper.lua (limited to '.config/awesome/functions/helper.lua') 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 +-- }}} -- cgit v1.2.3