Hi, I was lamenting about sending apps to specific screens and tags a while
back using the right side keypad, which is more convenient for me then say
'modkey-shift 1' above the keyboard. Thats gonna take 2 hands unless you
are good at hand gymnastics, I played an instrument and I can't do it. I
finally got back to it and I tried using like 'KP_1' etc never worked for
me. So now I tried using key codes and voila! so what I have is this


This will move an app to a specific screen, using what is my right key pad
number 1, 2 or 3
though you will have to experiment as keycodes can be different. Also my
screens
from left to right ended up being 1,3,2 as below is illustrating.

awful.key({ modkey,     }, "#87",      function (c)
awful.client.movetoscreen(c, 1)  end), --screen 1
awful.key({ modkey,     }, "#88",      function (c)
awful.client.movetoscreen(c, 3)  end), --screen 2
awful.key({ modkey,     }, "#89",      function (c)
awful.client.movetoscreen(c, 2)  end), --screen 3

next thing was apps to specific tags... Now I know this should be in a
loop. I will get to that at some point but
this sends apps to a specific tag on the current screen, and combining
modkey with "Mod1" which in my case is 'alt' key
you can go above 9.

for those who don't know, use xev to get your keycodes.

awful.key({ "Mod1",     }, "#87",      function (c)
awful.client.movetotag(tags[c.screen][1]) end),
awful.key({ "Mod1",     }, "#88",      function (c)
awful.client.movetotag(tags[c.screen][2]) end),
awful.key({ "Mod1",     }, "#89",      function (c)
awful.client.movetotag(tags[c.screen][3]) end),
awful.key({ "Mod1",     }, "#83",      function (c)
awful.client.movetotag(tags[c.screen][4]) end),
awful.key({ "Mod1",     }, "#84",      function (c)
awful.client.movetotag(tags[c.screen][5]) end),
awful.key({ "Mod1",     }, "#85",      function (c)
awful.client.movetotag(tags[c.screen][6]) end),
awful.key({ "Mod1",     }, "#79",      function (c)
awful.client.movetotag(tags[c.screen][7]) end),
awful.key({ "Mod1",     }, "#80",      function (c)
awful.client.movetotag(tags[c.screen][8]) end),
awful.key({ "Mod1",     }, "#81",      function (c)
awful.client.movetotag(tags[c.screen][9]) end),
awful.key({ modkey, "Mod1"}, "#90",      function (c)
awful.client.movetotag(tags[c.screen][10]) end),



--jerry



-- 

Gerald Klein DBA****

[email protected]

www.geraldklein.com <http://geraldklein.com/>****

[email protected]****

708-599-0352****


Linux registered user #548580

Reply via email to