]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - xmonad.hs
xmonad.hs: Move custom keys to own variable.
[config/dotfiles.git] / xmonad.hs
index cfc52d20b20741a696c4f3135b6279cffcae7882..a09b826818e6dc671a372d2e82232edc05c96eb2 100644 (file)
--- a/xmonad.hs
+++ b/xmonad.hs
@@ -71,6 +71,12 @@ myManageHook = composeOne
     , return True -?> doF W.focusDown
     ]
 
+myKeys = [
+        -- Switch to additional layout (vertical tiled) defined by
+        -- toggleLayouts above.
+        ((mod4Mask, xK_v), sendMessage ToggleLayout)
+    ]
+
 main = xmonad $ defaultConfig
     -- Use Windows key as main key so it doesn't conflict with any other key
     -- bindings.
@@ -85,10 +91,6 @@ main = xmonad $ defaultConfig
     -- Use unicode rxvt as my terminal.
     , terminal = "urxvt"
     }
-    `additionalKeys` [
-        -- Switch to additional layout (vertical tiled) defined by
-        -- toggleLayouts above.
-        ((mod4Mask, xK_v), sendMessage ToggleLayout)
-    ]
+    `additionalKeys` myKeys
 
 -- vim: nospell