summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-11-06 19:39:05 +0100
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-11-06 19:39:05 +0100
commitecac2fc9abe3f75a8b2005f81cac97e84fd9363f (patch)
treeb0444ce2054e61915c84b55daaf5c359e61c6f79
parent3f30293e85f4f02a468608352dd2d6fd8a72f24d (diff)
downloadawesome-configs-ecac2fc9abe3f75a8b2005f81cac97e84fd9363f.tar.xz
rc.lua: use keycodes to map keyboard digits
-rw-r--r--rc.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/rc.lua b/rc.lua
index a86a83a..fc14f9b 100644
--- a/rc.lua
+++ b/rc.lua
@@ -476,24 +476,24 @@ end
-- {{{ Tag controls
for i = 1, keynumber do
globalkeys = awful.util.table.join( globalkeys,
- awful.key({ modkey }, i, function ()
+ awful.key({ modkey }, "#" .. i + 9, function ()
local screen = mouse.screen
if tags[screen][i] then
awful.tag.viewonly(tags[screen][i])
end
end),
- awful.key({ modkey, "Control" }, i, function ()
+ awful.key({ modkey, "Control" }, "#" .. i + 9, function ()
local screen = mouse.screen
if tags[screen][i] then
awful.tag.viewtoggle(tags[screen][i])
end
end),
- awful.key({ modkey, "Shift" }, i, function ()
+ awful.key({ modkey, "Shift" }, "#" .. i + 9, function ()
if client.focus and tags[client.focus.screen][i] then
awful.client.movetotag(tags[client.focus.screen][i])
end
end),
- awful.key({ modkey, "Control", "Shift" }, i, function ()
+ awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9, function ()
if client.focus and tags[client.focus.screen][i] then
awful.client.toggletag(tags[client.focus.screen][i])
end