aboutsummaryrefslogtreecommitdiffstats
path: root/FocusNth.hs
diff options
context:
space:
mode:
Diffstat (limited to 'FocusNth.hs')
-rw-r--r--FocusNth.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/FocusNth.hs b/FocusNth.hs
index f697c75..1bcd66b 100644
--- a/FocusNth.hs
+++ b/FocusNth.hs
@@ -27,6 +27,12 @@ import XMonad
-- > ++ [((mod4Mask, k), focusNth i)
-- > | (i, k) <- zip [0 .. 8] [xK_1 ..]]
+-- %import XMonadContrib.FocusNth
+-- %keybdindextra ++
+-- %keybdindextra -- mod4-[1..9] @@ Switch to window N
+-- %keybdindextra [((mod4Mask, k), focusNth i)
+-- %keybdindextra | (i, k) <- zip [0 .. 8] [xK_1 ..]]
+
focusNth :: Int -> X ()
focusNth = windows . modify' . focusNth'