On 16.02.2012 00:50, Derek Thurn wrote:
The awful.client API specifies focus.byidx, which lets you switch
focus to a client by its relative index. What I want is to switch to a
client by *absolute* index. Is that possible?
The motivation behind this is that I want a keyboard shortcut that
does something like "always switch to this chrome window, regardless
of which client and screen currently has focus". I figure I could just
make sure the right chrome window always have absolute position 1 in
the client list, and then write a keyboard shortcut that always
switches to position one.
If you want the global list of clients:
client.focus = client.get()[42]
If you just want the clients that are currently visible:
client.focus = awful.client.visible()
(If you just want this for a specific screen, pass in the screen number as
function arguments)
Uli
--
To unsubscribe, send mail to [email protected].