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:
Damien Leone 2008-08-13 20:14:31 +02:00 committed by Julien Danjou
parent b2398370f9
commit f040a97002
1 changed files with 4 additions and 7 deletions

View File

@ -68,9 +68,6 @@ beautiful.init(theme_path)
-- to inform it about colors we want it to draw.
awful.beautiful.register(beautiful)
-- Enable prompt history
awful.prompt.history.set()
-- Uncomment this to activate autotabbing
-- tabulous.autotab_start()
-- }}}
@ -240,11 +237,11 @@ keybinding({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -
-- Prompt
keybinding({ modkey }, "F1", function ()
awful.prompt.run({ prompt = "Run: " }, mypromptbox, awful.spawn, awful.completion.bash)
end):add()
awful.prompt.run({ prompt = "Run: " }, mypromptbox, awful.spawn, awful.completion.bash,
os.getenv("HOME") .. "/.cache/awesome_history") end):add()
keybinding({ modkey }, "F4", function ()
awful.prompt.run({ prompt = "Run Lua code: " }, mypromptbox, awful.eval)
end):add()
awful.prompt.run({ prompt = "Run Lua code: " }, mypromptbox, awful.eval, awful.prompt.bash,
os.getenv("HOME") .. "/.cache/awesome_history_eval") end):add()
keybinding({ modkey, "Ctrl" }, "i", function ()
if mypromptbox.text then
mypromptbox.text = nil