From 1730d4f1ea0b85558c189005da58d82fe8f9ff42 Mon Sep 17 00:00:00 2001 From: "Ignas Anikevicius (gns_ank)" Date: Fri, 4 May 2012 23:09:03 +0100 Subject: [PATCH] Menubar: Add shell completion to menubar Since we can search for commands in menubar and easily execute almost any program now, we can definitely make use of awful.shell.completion, which is enabled with this commit. Signed-off-by: Ignas Anikevicius (gns_ank) Signed-off-by: Uli Schlachter --- lib/menubar/init.lua.in | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/menubar/init.lua.in b/lib/menubar/init.lua.in index 938471b1..58497a9b 100644 --- a/lib/menubar/init.lua.in +++ b/lib/menubar/init.lua.in @@ -240,10 +240,12 @@ function show(scr) current_item = 1 current_category = nil menulist_update() - awful.prompt.run({ prompt = "Run app: " }, instance.prompt.widget, function(s) end, - nil, awful.util.getdir("cache") .. "/history_menu", nil, hide, - menulist_update, - prompt_keypressed_callback) + awful.prompt.run({ prompt = "Run: " }, instance.prompt.widget, + function(s) end, -- exe_callback function set to do nothing + awful.completion.shell, -- completion_callback + awful.util.getdir("cache") .. "/history_menu", + nil, hide, menulist_update, prompt_keypressed_callback + ) instance.wibox.visible = true end