diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-11-06 19:39:05 +0100 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2009-11-06 19:39:05 +0100 |
commit | ecac2fc9abe3f75a8b2005f81cac97e84fd9363f (patch) | |
tree | b0444ce2054e61915c84b55daaf5c359e61c6f79 | |
parent | 3f30293e85f4f02a468608352dd2d6fd8a72f24d (diff) | |
download | awesome-configs-ecac2fc9abe3f75a8b2005f81cac97e84fd9363f.tar.xz |
rc.lua: use keycodes to map keyboard digits
-rw-r--r-- | rc.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |