awesomerc: Change prompt.run parameters so it can handle history
Signed-off-by: Damien Leone <damien.leone@gmail.com> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
b2398370f9
commit
f040a97002
|
@ -68,9 +68,6 @@ beautiful.init(theme_path)
|
||||||
-- to inform it about colors we want it to draw.
|
-- to inform it about colors we want it to draw.
|
||||||
awful.beautiful.register(beautiful)
|
awful.beautiful.register(beautiful)
|
||||||
|
|
||||||
-- Enable prompt history
|
|
||||||
awful.prompt.history.set()
|
|
||||||
|
|
||||||
-- Uncomment this to activate autotabbing
|
-- Uncomment this to activate autotabbing
|
||||||
-- tabulous.autotab_start()
|
-- tabulous.autotab_start()
|
||||||
-- }}}
|
-- }}}
|
||||||
|
@ -240,11 +237,11 @@ keybinding({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -
|
||||||
|
|
||||||
-- Prompt
|
-- Prompt
|
||||||
keybinding({ modkey }, "F1", function ()
|
keybinding({ modkey }, "F1", function ()
|
||||||
awful.prompt.run({ prompt = "Run: " }, mypromptbox, awful.spawn, awful.completion.bash)
|
awful.prompt.run({ prompt = "Run: " }, mypromptbox, awful.spawn, awful.completion.bash,
|
||||||
end):add()
|
os.getenv("HOME") .. "/.cache/awesome_history") end):add()
|
||||||
keybinding({ modkey }, "F4", function ()
|
keybinding({ modkey }, "F4", function ()
|
||||||
awful.prompt.run({ prompt = "Run Lua code: " }, mypromptbox, awful.eval)
|
awful.prompt.run({ prompt = "Run Lua code: " }, mypromptbox, awful.eval, awful.prompt.bash,
|
||||||
end):add()
|
os.getenv("HOME") .. "/.cache/awesome_history_eval") end):add()
|
||||||
keybinding({ modkey, "Ctrl" }, "i", function ()
|
keybinding({ modkey, "Ctrl" }, "i", function ()
|
||||||
if mypromptbox.text then
|
if mypromptbox.text then
|
||||||
mypromptbox.text = nil
|
mypromptbox.text = nil
|
||||||
|
|
Loading…
Reference in New Issue