-- Found allowed layout, show it.
else refresh
+-- Use additional workspaces. Access with alt 1,2,..,9,0 for the first ten,
+-- f1,f2,..,f10 for the second ten workspaces (see mappings below).
+myWorkspaces = map show [1 .. 20 :: Int]
+
myKeys = [
-- Switch to next layout, but only use the listed layouts.
((mod4Mask, xK_space), nextLayoutIncluding ["Default", "Full"])
-- Thanks to the xmonad FAQ, read on 2010-06-16 13:42 CEST
-- (http://www.haskell.org/haskellwiki/Xmonad/Frequently_asked_questions).
-- Thanks to MrElendig in #xmonad on Freenode (2010-06-17 17:16 CEST) how
- -- to use the default xmonad workspaces.
+ -- to use the default xmonad workspaces. Thanks to geekosaur and OODavo in
+ -- #xmonad on Freenode (2012-12-23 01:14 CET) how to use my workspaces.
[((m .|. mod4Mask, k), windows $ f i)
- | (i, k) <- zip (XMonad.workspaces defaultConfig) [xK_1 .. xK_9]
+ | (i, k) <- zip myWorkspaces ([xK_1 .. xK_9] ++ [xK_0] -- 1..9,0
+ ++ [xK_F1 .. xK_F10]) -- f1..f10
, (f, m) <- [(W.view, 0), (W.shift, shiftMask)]]
main = xmonad $ defaultConfig
, terminal = "urxvt"
-- Necessary for Java so it recognizes xmonad as tiling window manager.
, startupHook = setWMName "LG3D"
+ -- Use more workspaces than the default.
+ , workspaces = myWorkspaces
}
`additionalKeys` myKeys