From 71c5527f6ae6d67a6103af80816e2dd1da9bd074 Mon Sep 17 00:00:00 2001 From: crater2150 Date: Thu, 19 Feb 2015 11:05:49 +0100 Subject: [PATCH] Replace dmenu_desktopfile with awesome's menubar module --- bindings.lua | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/bindings.lua b/bindings.lua index 99d2e5e..e930e3a 100644 --- a/bindings.lua +++ b/bindings.lua @@ -8,6 +8,16 @@ local modkey = conf.modkey or "Mod4" local mb = require("modalbind") local calendar = require("calendar") +app_folders = { + "/usr/share/applications", + "/usr/local/share/applications", + os.getenv("HOME") .. "/.local/applications", + os.getenv("HOME") .. "/Desktop" +} +local menubar = require("menubar") + +menubar.utils.terminal = conf.cmd.terminal -- Set the terminal for applications that require it + local bindings = {modalbind = mb} -- {{{ Mouse bindings @@ -120,7 +130,7 @@ function bindings.extend_key_table(globalkeys) --{{{ Prompt awful.key({ modkey }, "r", conf.cmd.run), - awful.key({ modkey, "Shift" }, "r", spawnf("dmenu_desktopfile")), + awful.key({ modkey, "Shift" }, "r", menubar.show), awful.key({ modkey }, "s", spawnf("dmsearch")),