diff options
author | Brent Yorgey <byorgey@gmail.com> | 2007-12-04 21:40:39 +0100 |
---|---|---|
committer | Brent Yorgey <byorgey@gmail.com> | 2007-12-04 21:40:39 +0100 |
commit | 9cb46e8728516ed33eca6c33469e3a530b5c7439 (patch) | |
tree | 090fe942f170976100957e072e54dbf768d7e1ee /XMonad/Layout/LayoutScreens.hs | |
parent | 180e9c4dba7bff589bac84145abb7d733ca55fe5 (diff) | |
download | XMonadContrib-9cb46e8728516ed33eca6c33469e3a530b5c7439.tar.gz XMonadContrib-9cb46e8728516ed33eca6c33469e3a530b5c7439.tar.xz XMonadContrib-9cb46e8728516ed33eca6c33469e3a530b5c7439.zip |
LayoutScreens and Square: haddock updates
darcs-hash:20071204204039-bd4d7-3f505a0e35bdeb2857d11c9a6fb9e2f45eecafe4.gz
Diffstat (limited to 'XMonad/Layout/LayoutScreens.hs')
-rw-r--r-- | XMonad/Layout/LayoutScreens.hs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/XMonad/Layout/LayoutScreens.hs b/XMonad/Layout/LayoutScreens.hs index 95e11a5..deefbae 100644 --- a/XMonad/Layout/LayoutScreens.hs +++ b/XMonad/Layout/LayoutScreens.hs @@ -35,10 +35,12 @@ import Graphics.X11.Xlib.Extras -- screen and long for greater flexibility (e.g. being able to see your -- email window at all times, a crude mimic of sticky windows). -- --- You can use this module with the following in your Config.hs file: +-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@ file: -- -- > import XMonad.Layout.LayoutScreens -- +-- Then add some keybindings; for example: +-- -- > , ((modMask .|. shiftMask, xK_space), layoutScreens 2 (TwoPane 0.5 0.5)) -- > , ((controlMask .|. modMask .|. shiftMask, xK_space), rescreen) -- @@ -51,10 +53,9 @@ import Graphics.X11.Xlib.Extras -- > , ((modMask .|. shiftMask, xK_space), -- > layoutScreens 1 (fixedLayout [Rectangle 0 0 1024 768])) -- > , ((controlMask .|. modMask .|. shiftMask, xK_space), rescreen) - --- %import XMonad.Layout.LayoutScreens --- %keybind , ((modMask .|. shiftMask, xK_space), layoutScreens 2 (twoPane 0.5 0.5)) --- %keybind , ((controlMask .|. modMask .|. shiftMask, xK_space), rescreen) +-- +-- For detailed instructions on editing your key bindings, see +-- "XMonad.Doc.Extending#Editing_key_bindings". layoutScreens :: LayoutClass l Int => Int -> l Int -> X () layoutScreens nscr _ | nscr < 1 = trace $ "Can't layoutScreens with only " ++ show nscr ++ " screens." |