From 3075f6f7c9642e6c9892f594f782f493b18d194d Mon Sep 17 00:00:00 2001 From: Christophe Simon Date: Sun, 21 Sep 2014 21:20:35 +0200 Subject: [PATCH] Added dmenu support. --- rc/keys.lua | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/rc/keys.lua b/rc/keys.lua index 484515a..a32db7d 100644 --- a/rc/keys.lua +++ b/rc/keys.lua @@ -135,9 +135,18 @@ global_keys = awful.util.table.join( awful.key({"Control", "Mod1"}, "l", function () awful.util.spawn(xlock) end), -- moves selected clients to current tag - awful.key({ modkey }, "v", utils.client.markedtoctag), - - awful.key({ modkey }, "b", utils.mode.get_mode_callback("RESIZE", resize_mode_keys, widgets.mode)) + awful.key({ modkey }, "v", utils.client.markedtoctag), + + awful.key({ modkey }, "b", utils.mode.get_mode_callback("RESIZE", resize_mode_keys, widgets.mode)), + awful.key({ modkey }, "d", function () + local cmd = "dmenu_run -i" .. + " -nb '" .. string.sub(beautiful.bg_normal, 0, 7) .. + "' -nf '" .. string.sub(beautiful.fg_normal, 0, 7) .. + "' -sb '" .. string.sub(beautiful.bg_focus, 0, 7) .. + "' -sf '" .. string.sub(beautiful.fg_focus, 0, 7) .. + "' -fn 'dejavu sans-8'" + awful.util.spawn(cmd) + end) ) -- }}}