aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Actions/Plane.hs
diff options
context:
space:
mode:
authorMarco TĂșlio Gontijo e Silva <marcot@riseup.net>2008-07-09 02:24:25 +0200
committerMarco TĂșlio Gontijo e Silva <marcot@riseup.net>2008-07-09 02:24:25 +0200
commitb825a37e8e5022319792f139cdc392271ccf37ed (patch)
treecb9dccbcf8f1dd2c70ea902e2589625e2db1c2ca /XMonad/Actions/Plane.hs
parente005480a744f81f99df4085a5e6ce59ce7d6d4a8 (diff)
downloadXMonadContrib-b825a37e8e5022319792f139cdc392271ccf37ed.tar.gz
XMonadContrib-b825a37e8e5022319792f139cdc392271ccf37ed.tar.xz
XMonadContrib-b825a37e8e5022319792f139cdc392271ccf37ed.zip
Improvements in documentation
darcs-hash:20080709002425-7641b-d26e5f4c28c39d0c0ace1230785c35ce3104e62a.gz
Diffstat (limited to 'XMonad/Actions/Plane.hs')
-rw-r--r--XMonad/Actions/Plane.hs33
1 files changed, 8 insertions, 25 deletions
diff --git a/XMonad/Actions/Plane.hs b/XMonad/Actions/Plane.hs
index 9dca7d2..e91f188 100644
--- a/XMonad/Actions/Plane.hs
+++ b/XMonad/Actions/Plane.hs
@@ -65,13 +65,12 @@ import XMonad.Util.Run
-- | Direction to go in the plane.
data Direction = ToLeft | ToUp | ToRight | ToDown deriving Enum
--- | Defines whether it's a finite or a circular organization of workspaces.
+-- | Defines the behaviour when you're trying to move out of the limits.
data Limits
- = Finite -- ^ When you're at a edge of the plane, there's no way to move
- -- to the next region.
- | Circular -- ^ If you try to move, you'll get to the other edge, on the
- -- other side.
- | Linear -- ^ The plan comes as a row.
+ = Finite -- ^ Ignore the function call, and keep in the same workspace.
+ | Circular -- ^ Get on the other side, like in the Snake game.
+ | Linear -- ^ The plan comes as a row, so it goes to the next or prev if
+ -- the workspaces were numbered.
deriving Eq
-- | The number of lines in which the workspaces will be arranged. It's
@@ -82,26 +81,10 @@ data Lines
= GConf -- ^ Use @gconftool-2@ to find out the number of lines.
| Lines Int -- ^ Specify the number of lines explicity.
--- $navigating
---
--- There're two parameters that must be provided to navigate, and it's a good
--- idea to use them with the same values in each keybinding.
---
--- The first is the number of lines in which the workspaces are going to be
--- organized. It's possible to use a number of lines that is not a divisor
--- of the number of workspaces, but the results are better when using a
--- divisor. If it's not a divisor, the last line will have the remaining
--- workspaces.
---
--- The other one is 'Limits'.
-
-- | Shift a window to the next workspace in 'Direction'. Note that this will
--- also move to the next workspace.
-planeShift
- :: Lines
- -> Limits
- -> Direction
- -> X ()
+-- also move to the next workspace. It's a good idea to use the same 'Lines'
+-- and 'Limits' for all the bindings.
+planeShift :: Lines -> Limits -> Direction -> X ()
planeShift = plane shift'
shift' ::