|
@@ -67,117 +67,113 @@ main = do
|
|
|
`removeKeys` myRemoveKeys
|
|
|
|
|
|
myKeys conf@(XConfig {XMonad.modMask = myModMask}) = M.fromList $
|
|
|
- [
|
|
|
-
|
|
|
- ((myModMask, xK_x),
|
|
|
- spawn "emacsclient -c")
|
|
|
- , ((myModMask, xK_z),
|
|
|
- spawn "firefox-nightly")
|
|
|
- , ((myModMask, xK_m),
|
|
|
- spawn ":"
|
|
|
-
|
|
|
- )
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- , ((myModMask .|. shiftMask, xK_Return),
|
|
|
- spawn myTerminal)
|
|
|
-
|
|
|
-
|
|
|
- , ((myModMask .|. shiftMask, xK_c),
|
|
|
- kill)
|
|
|
-
|
|
|
-
|
|
|
- , ((myModMask, xK_space),
|
|
|
- sendMessage NextLayout)
|
|
|
-
|
|
|
-
|
|
|
- , ((myModMask .|. shiftMask, xK_space),
|
|
|
- setLayout $ XMonad.layoutHook conf)
|
|
|
-
|
|
|
-
|
|
|
- , ((myModMask, xK_n),
|
|
|
- refresh)
|
|
|
-
|
|
|
-
|
|
|
- , ((myModMask, xK_Tab),
|
|
|
- windows W.focusDown)
|
|
|
-
|
|
|
-
|
|
|
- , ((myModMask, xK_j),
|
|
|
- windows W.focusDown)
|
|
|
-
|
|
|
-
|
|
|
- , ((myModMask, xK_k),
|
|
|
- windows W.focusUp )
|
|
|
-
|
|
|
-
|
|
|
- , ((myModMask, xK_m),
|
|
|
- windows W.focusMaster )
|
|
|
-
|
|
|
-
|
|
|
- , ((myModMask, xK_Return),
|
|
|
- windows W.swapMaster)
|
|
|
-
|
|
|
-
|
|
|
- , ((myModMask .|. shiftMask, xK_j),
|
|
|
- windows W.swapDown )
|
|
|
-
|
|
|
-
|
|
|
- , ((myModMask .|. shiftMask, xK_k),
|
|
|
- windows W.swapUp )
|
|
|
-
|
|
|
-
|
|
|
- , ((myModMask, xK_h),
|
|
|
- sendMessage Shrink)
|
|
|
-
|
|
|
-
|
|
|
- , ((myModMask, xK_l),
|
|
|
- sendMessage Expand)
|
|
|
-
|
|
|
-
|
|
|
- , ((myModMask, xK_t),
|
|
|
- withFocused $ windows . W.sink)
|
|
|
-
|
|
|
-
|
|
|
- , ((myModMask, xK_comma),
|
|
|
- sendMessage (IncMasterN 1))
|
|
|
-
|
|
|
-
|
|
|
- , ((myModMask, xK_period),
|
|
|
- sendMessage (IncMasterN (-1)))
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- , ((myModMask, xK_q),
|
|
|
- restart "xmonad" True)
|
|
|
- ]
|
|
|
- ++
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- [((m .|. myModMask, k), windows $ f i)
|
|
|
- | (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9]
|
|
|
- , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]]
|
|
|
- ++
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- [((m .|. myModMask, key), screenWorkspace sc >>= flip whenJust (windows . f))
|
|
|
- | (key, sc) <- zip [xK_w, xK_e, xK_r] [0..]
|
|
|
- , (f, m) <- [(W.view, 0), (W.shift, shiftMask)]]
|
|
|
+
|
|
|
+ [ ((myModMask, xK_x),
|
|
|
+ spawn "emacsclient -c")
|
|
|
+ , ((myModMask, xK_z),
|
|
|
+ spawn "firefox-nightly")
|
|
|
+ , ((myModMask, xK_m),
|
|
|
+ spawn ":")
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ , ((myModMask .|. shiftMask, xK_Return),
|
|
|
+ spawn myTerminal)
|
|
|
+
|
|
|
+
|
|
|
+ , ((myModMask .|. shiftMask, xK_c),
|
|
|
+ kill)
|
|
|
+
|
|
|
+
|
|
|
+ , ((myModMask, xK_space),
|
|
|
+ sendMessage NextLayout)
|
|
|
+
|
|
|
+
|
|
|
+ , ((myModMask .|. shiftMask, xK_space),
|
|
|
+ setLayout $ XMonad.layoutHook conf)
|
|
|
+
|
|
|
+
|
|
|
+ , ((myModMask, xK_n),
|
|
|
+ refresh)
|
|
|
+
|
|
|
+
|
|
|
+ , ((myModMask, xK_Tab),
|
|
|
+ windows W.focusDown)
|
|
|
+
|
|
|
+
|
|
|
+ , ((myModMask, xK_j),
|
|
|
+ windows W.focusDown)
|
|
|
+
|
|
|
+
|
|
|
+ , ((myModMask, xK_k),
|
|
|
+ windows W.focusUp )
|
|
|
+
|
|
|
+
|
|
|
+ , ((myModMask, xK_m),
|
|
|
+ windows W.focusMaster )
|
|
|
+
|
|
|
+
|
|
|
+ , ((myModMask, xK_Return),
|
|
|
+ windows W.swapMaster)
|
|
|
+
|
|
|
+
|
|
|
+ , ((myModMask .|. shiftMask, xK_j),
|
|
|
+ windows W.swapDown )
|
|
|
+
|
|
|
+
|
|
|
+ , ((myModMask .|. shiftMask, xK_k),
|
|
|
+ windows W.swapUp )
|
|
|
+
|
|
|
+
|
|
|
+ , ((myModMask, xK_h),
|
|
|
+ sendMessage Shrink)
|
|
|
+
|
|
|
+
|
|
|
+ , ((myModMask, xK_l),
|
|
|
+ sendMessage Expand)
|
|
|
+
|
|
|
+
|
|
|
+ , ((myModMask, xK_t),
|
|
|
+ withFocused $ windows . W.sink)
|
|
|
+
|
|
|
+
|
|
|
+ , ((myModMask, xK_comma),
|
|
|
+ sendMessage (IncMasterN 1))
|
|
|
+
|
|
|
+
|
|
|
+ , ((myModMask, xK_period),
|
|
|
+ sendMessage (IncMasterN (-1)))
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ , ((myModMask, xK_q),
|
|
|
+ restart "xmonad" True)
|
|
|
+ ]
|
|
|
+ ++
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ [ ((m .|. myModMask, k), windows $ f i)
|
|
|
+ | (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9]
|
|
|
+ , (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]
|
|
|
+ ]
|
|
|
+ ++
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ [ ((m .|. myModMask, key), screenWorkspace sc >>= flip whenJust (windows . f))
|
|
|
+ | (key, sc) <- zip [xK_w, xK_e, xK_r] [0..]
|
|
|
+ , (f, m) <- [(W.view, 0), (W.shift, shiftMask)]
|
|
|
+ ]
|
|
|
|
|
|
myRemoveKeys =
|
|
|
[ (mod4Mask, xK_Tab)
|
|
|
, (mod4Mask .|. shiftMask, xK_Tab)
|
|
|
+ , (mod4Mask, xK_p)
|
|
|
]
|
|
|
- ++
|
|
|
-
|
|
|
- [(mod4Mask, xK_p)]
|
|
|
-
|
|
|
-
|
|
|
|
|
|
myManageHook = composeAll . concat $
|
|
|
[ [ className =? c
|