Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XMonad classic alt tab

Tags:

xmonad

Is it possible for XMonad to behave like many window managers with regard to switching active window using Alt-Tab keys? After some looking I've tried:

((mod1Mask, xK_Tab), cycleRecentWindows [xK_Alt_L] xK_Tab xK_Tab)

from XMonad.Actions.CycleWindows module. This configuration "almost" works. One issue is that I must execute the sequence slowly (just under 1 second I think). Other WMs I have do not suffer from this kind of input lag. The other issue is that it shuffles windows around, I would love to have alt-tab just switch focus to previous window.

like image 650
Rumca Avatar asked Nov 13 '22 01:11

Rumca


1 Answers

I am using GroupNavigation for similar thing

Following example does cycle through windows on all workspaces:

import XMonad.Actions.GroupNavigation

...

((modm , xK_Tab), nextMatch Backward (return True))

...
like image 110
Jiri Avatar answered Jan 04 '23 03:01

Jiri