Just to update, tried focus_relative but pressing it would ALWAYS
change monitor (not the behaviour I'm looking for as I sometimes lose
track of where I currently am).

Instead I used focus_bydirection and does exactly what I want. Thank you!

On Fri, Jul 22, 2016 at 4:35 PM, Oon-Ee Ng <ngoonee.t...@gmail.com> wrote:
> Thanks! I'll try that out when I get back.
>
> On 22 Jul 2016 13:43, "David Sorkovsky" <davidsorkov...@hotmail.com> wrote:
>>
>> Hi,
>>
>> Not sure about how your key combinations are configured, but these are
>> what I have in my awesome config...
>>
>>         awful.key({ modkey, "Control" }, "j",           function ()
>> awful.screen.focus_relative( 1)
>> end),
>>         awful.key({ modkey, "Control" }, "k",           function ()
>> awful.screen.focus_relative(-1)
>> end),
>>         awful.key({ modkey,           }, "u",
>> awful.client.urgent.jumpto
>> ),
>>
>> From that and "https://awesomewm.org/doc/api/modules/awful.screen.html";
>> you might want to try...
>>
>>         awful.screen.focus_bydirection (dir, _screen)
>>
>>         "Give the focus to a screen, and move pointer, by physical
>> position relative to current screen."
>>
>>
>> Regards
>>
>> Dave
>>
>> -----Original Message-----
>> From: Oon-Ee Ng [mailto:ngoonee.t...@gmail.com]
>> Sent: Friday, 22 July 2016 1:37 PM
>> To: awesome@naquadah.org
>> Subject: Mod-u and Mod-i when monitors switch position
>>
>> Right now Mod-u and Mod-i go to the 1st/2nd monitor respectively. My 1st
>> monitor is my primary laptop LCD, while my 2nd monitor is a VGA-connected
>> one.
>>
>> In my home, the 2nd monitor is on the right, but in my office its made
>> more sense to move it to the left. Trivial to setup xrandr for that, but now
>> my muscle memory keeps pressing Mod-u when I want to go the the external
>> monitor (because I remember it as 'go to left monitor').
>>
>> How can I make Mod-u represent "go to the screen which is on the left"
>> rather than "go to the first (primary) screen"?
>>
>> --
>> To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.

-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.

Reply via email to