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) <anikevicius@gmail.com> Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
b246e87b1a
commit
1730d4f1ea
|
@ -240,10 +240,12 @@ function show(scr)
|
||||||
current_item = 1
|
current_item = 1
|
||||||
current_category = nil
|
current_category = nil
|
||||||
menulist_update()
|
menulist_update()
|
||||||
awful.prompt.run({ prompt = "Run app: " }, instance.prompt.widget, function(s) end,
|
awful.prompt.run({ prompt = "Run: " }, instance.prompt.widget,
|
||||||
nil, awful.util.getdir("cache") .. "/history_menu", nil, hide,
|
function(s) end, -- exe_callback function set to do nothing
|
||||||
menulist_update,
|
awful.completion.shell, -- completion_callback
|
||||||
prompt_keypressed_callback)
|
awful.util.getdir("cache") .. "/history_menu",
|
||||||
|
nil, hide, menulist_update, prompt_keypressed_callback
|
||||||
|
)
|
||||||
instance.wibox.visible = true
|
instance.wibox.visible = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue