diff options
author | Don Stewart <dons@cse.unsw.edu.au> | 2007-05-26 13:14:53 +0200 |
---|---|---|
committer | Don Stewart <dons@cse.unsw.edu.au> | 2007-05-26 13:14:53 +0200 |
commit | 50909be1201054ba3b72c5c85ec0e1981e4fdfc6 (patch) | |
tree | 13ca01ce7d4182a59d5cda40c626a1bce7604501 /Config.hs | |
parent | 871c2f509deb47a88b826be17d0ec5241493c258 (diff) | |
download | xmonad-50909be1201054ba3b72c5c85ec0e1981e4fdfc6.tar.gz xmonad-50909be1201054ba3b72c5c85ec0e1981e4fdfc6.tar.xz xmonad-50909be1201054ba3b72c5c85ec0e1981e4fdfc6.zip |
HEADS UP: change key binding for swapLeft/Right and IncMaster
The use of arrow keys for swapLeft/Right clash with firefox's back
button. Use the more intuitive mod-shift-jk for this. (It's a movement
operation, after all).
This clashes with IncMaster, so we use mod+comma and mod+period for
these (i.e. the keys mod < and mod > , to move windows to and from the
master area).
While we're here, replace the use of the terms 'left' and 'right' for
navigation, in comments and identifiers, with 'up' and 'down' instead.
Hence mod-j
darcs-hash:20070526111453-9c5c1-3242145ee5b51eb070a7dc3663f0d6cc01671d5c.gz
Diffstat (limited to 'Config.hs')
-rw-r--r-- | Config.hs | 29 |
1 files changed, 17 insertions, 12 deletions
@@ -148,35 +148,40 @@ defaultLayouts = [ full -- keys :: M.Map (KeyMask, KeySym) (X ()) keys = M.fromList $ + -- launching and killing programs [ ((modMask .|. shiftMask, xK_Return), spawn "xterm") , ((modMask, xK_p ), spawn "exe=`dmenu_path | dmenu` && exec $exe") , ((modMask .|. shiftMask, xK_p ), spawn "gmrun") + , ((modMask .|. shiftMask, xK_c ), kill) + + -- rotate through the available layout algorithms , ((modMask, xK_space ), switchLayout) -- 'nudge': resize viewed windows to the correct size. , ((modMask, xK_n ), refresh) - , ((modMask, xK_Tab ), focusRight) - , ((modMask, xK_j ), focusRight) - , ((modMask, xK_k ), focusLeft) + -- move focus up or down the window stack + , ((modMask, xK_Tab ), focusDown) + , ((modMask, xK_j ), focusDown) + , ((modMask, xK_k ), focusUp) - , ((modMask, xK_Left ), swapLeft) - , ((modMask, xK_Right ), swapRight) + -- modifying the window order + , ((modMask, xK_Return), swapMaster) + , ((modMask .|. shiftMask, xK_j ), swapDown) + , ((modMask .|. shiftMask, xK_k ), swapUp) + -- resizing the master/slave ratio , ((modMask, xK_h ), sendMessage Shrink) , ((modMask, xK_l ), sendMessage Expand) - , ((modMask .|. shiftMask, xK_j ), sendMessage (IncMasterN 1)) - , ((modMask .|. shiftMask, xK_k ), sendMessage (IncMasterN (-1))) - - , ((modMask .|. shiftMask, xK_c ), kill) + -- increase or decrease number of windows in the master area + , ((modMask , xK_comma ), sendMessage (IncMasterN 1)) + , ((modMask , xK_period), sendMessage (IncMasterN (-1))) + -- quit, or restart , ((modMask .|. shiftMask, xK_q ), io $ exitWith ExitSuccess) , ((modMask .|. shiftMask .|. controlMask, xK_q ), restart Nothing True) - -- Cycle the current tiling order - , ((modMask, xK_Return), swapMaster) - ] ++ -- Keybindings to get to each workspace: [((m .|. modMask, k), f i) |