mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
LayoutScreens and Square: haddock updates
This commit is contained in:
parent
258ccb3468
commit
7296b99306
@ -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."
|
||||
|
@ -29,7 +29,7 @@ import Graphics.X11.Xlib
|
||||
import XMonad.StackSet ( integrate )
|
||||
|
||||
-- $usage
|
||||
-- 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.Square
|
||||
--
|
||||
@ -40,7 +40,8 @@ import XMonad.StackSet ( integrate )
|
||||
-- > [(twoPane 0.03 0.2,1),(combo [(twoPane 0.03 0.8,1),(square,1)]
|
||||
-- > [(tabbed,3),(tabbed,30),(tabbed,1),(tabbed,1)]
|
||||
|
||||
-- %import XMonad.Layout.Square
|
||||
-- For detailed instructions on editing your key bindings, see
|
||||
-- "XMonad.Doc.Extending#Editing_key_bindings".
|
||||
|
||||
data Square a = Square deriving ( Read, Show )
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user