summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2010-03-10 01:42:19 +0100
committerAdrian C. (anrxc) <anrxc@sysphere.org>2010-03-10 01:42:19 +0100
commit7fbce6e22656d145dc1bf5f72a36308ce4811530 (patch)
tree6c2af641f9174cc682e067111263d17b8f6bbb16
parent268bcb00f65019283dc4b8f9dab72b0764616d1b (diff)
downloadawesome-configs-7fbce6e22656d145dc1bf5f72a36308ce4811530.tar.xz
rc.lua: bring back the Web prompt
-rw-r--r--rc.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/rc.lua b/rc.lua
index f7ea163..fb5e6f4 100644
--- a/rc.lua
+++ b/rc.lua
@@ -351,7 +351,14 @@ globalkeys = awful.util.table.join(
end)
end),
awful.key({ altkey }, "F4", function ()
- awful.prompt.run({ prompt = "Run Lua code: " }, promptbox[mouse.screen].widget,
+ awful.prompt.run({ prompt = "Web: " }, promptbox[mouse.screen].widget,
+ function (command)
+ sexec("firefox 'http://yubnub.org/parser/parse?command="..command.."'")
+ awful.tag.viewonly(tags[screen.count()][3])
+ end)
+ end),
+ awful.key({ altkey }, "F5", function ()
+ awful.prompt.run({ prompt = "Lua: " }, promptbox[mouse.screen].widget,
awful.util.eval, nil, awful.util.getdir("cache") .. "/history_eval")
end),
-- }}}