Hi,
On 23.05.2012 10:26, Rainer M Krug wrote:
On 22/05/12 21:15, Uli Schlachter wrote:
However, since I don't have any good ideas for key combos and what exactly the
should do...
I am using modkey-right and modkey-left to switch between tags on the active
screen - so would it
be possible to switch with modkey-1-left on screen 1?
Sorry, nope. We can only do key combinations with modifier keys (Shift, Control,
Mod4, Alt....) and one extra key. Since neither 1 nor left are modifiers, this
wouldn't work.
Richard Kolkowitch suggested:
if mouse.screen == 1 then
screen = 2
else
screen = 1
end
awful.tag.viewnext(screen)
to switch on the non-active screen (thanks!) - could I then map
awful.tag.viewnext(screen) to modkey-1-left ?
Yes, implementing such a keybinding would work. How about something like
mod+shift+left? Do you already have a keybinding on that?
So let's try... The code below is completely untested and was invented on the
spot. Hopefully it works.
awful.key({ modkey, "Shift" }, "Left", function()
awful.tag.viewprev(mouse.screen == 1 and 2 or 1)
end),
awful.key({ modkey, "Shift" }, "Right", function()
awful.tag.viewnext(mouse.screen == 1 and 2 or 1)
end),
Of course, this obviously doesn't work for three screens.
Uli
P.S.: Thanks jd, I really didn't know about awful.tag.viewnext/prev!
--
To unsubscribe, send mail to [email protected].