summaryrefslogtreecommitdiffstats
path: root/Operations.hs
diff options
context:
space:
mode:
authorDon Stewart <dons@cse.unsw.edu.au>2007-05-26 13:14:53 +0200
committerDon Stewart <dons@cse.unsw.edu.au>2007-05-26 13:14:53 +0200
commit15510395648ff158e69d5cbb1fb06261245880ee (patch)
tree13ca01ce7d4182a59d5cda40c626a1bce7604501 /Operations.hs
parent4a5a096d7e9f3dd67c6903325a56092906113041 (diff)
downloadmetatile-15510395648ff158e69d5cbb1fb06261245880ee.tar
metatile-15510395648ff158e69d5cbb1fb06261245880ee.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 == focusDown. Far more intuitive for people (dons) who live in fullscreen mode and have vim movement wired into their central nervous system. Principle of least VI surprise: movement down or up means using j and k. darcs-hash:20070526111453-9c5c1-3242145ee5b51eb070a7dc3663f0d6cc01671d5c
Diffstat (limited to 'Operations.hs')
-rw-r--r--Operations.hs12
1 files changed, 6 insertions, 6 deletions
diff --git a/Operations.hs b/Operations.hs
index 39a5a35..84994d6 100644
--- a/Operations.hs
+++ b/Operations.hs
@@ -43,7 +43,7 @@ manage w = do
selectInput d w $ structureNotifyMask .|. enterWindowMask .|. propertyChangeMask
mapWindow d w
setWindowBorderWidth d w borderWidth
- windows $ W.insertLeft w
+ windows $ W.insertUp w
-- | unmanage. A window no longer exists, remove it from the window
-- list, on whatever workspace it is.
@@ -51,11 +51,11 @@ unmanage :: Window -> X ()
unmanage = windows . W.delete
-- | focus. focus window to the left or right.
-focusLeft, focusRight, swapLeft, swapRight :: X ()
-focusLeft = windows W.focusLeft
-focusRight = windows W.focusRight
-swapLeft = windows W.swapLeft
-swapRight = windows W.swapRight
+focusUp, focusDown, swapUp, swapDown :: X ()
+focusUp = windows W.focusUp
+focusDown = windows W.focusDown
+swapUp = windows W.swapUp
+swapDown = windows W.swapDown
-- | swapMaster. Move the currently focused window into the master frame
swapMaster :: X ()