From ecac2fc9abe3f75a8b2005f81cac97e84fd9363f Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Fri, 6 Nov 2009 19:39:05 +0100 Subject: rc.lua: use keycodes to map keyboard digits --- rc.lua | 8 ++++---- 1 file 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 -- cgit v1.2.3