To use it, you're going to apply the withWindowNavigation function.
withWindowNavigation performs some IO operations, so the syntax you'll use
is the same as the spawnPipe example in XMonad.Hooks.DynamicLog.
In particular:
main = do
config <- withWindowNavigation (xK_w, xK_a, xK_s, xK_d)
$ defaultConfig { ... }
xmonad config
Here, we pass in the keys for navigation in counter-clockwise order from up.
It creates keybindings for modMask to move to window, and modMask .|. shiftMask
to swap windows.
If you want more flexibility over your keybindings, you can use
withWindowNavigationKeys, which takes a list of keys-esque entries rather
than a tuple of the four directional keys. See the source code of
withWindowNavigation for an example.
|