-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 24/05/12 10:53, Uli Schlachter wrote:
> 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!


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys.
(Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      [email protected]

Skype:      RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+9+kAACgkQoYgNqgF2egrF8wCfcYXWH0xdE2EWE90PlKhbpauc
Fq4An1K5HvPgawl65bGYb626JYtY/9+a
=FfkE
-----END PGP SIGNATURE-----

-- 
To unsubscribe, send mail to [email protected].

Reply via email to