diff options
author | Brent Yorgey <byorgey@gmail.com> | 2007-11-23 20:56:43 +0100 |
---|---|---|
committer | Brent Yorgey <byorgey@gmail.com> | 2007-11-23 20:56:43 +0100 |
commit | ccaefff387102ab534e4c0456cb863b593a88047 (patch) | |
tree | ac15db7e61c118b5b89e542a11a28946aff975fd /XMonad | |
parent | aff9b9e8528c2f7a7225532ac6b1e8282aaf6345 (diff) | |
download | XMonadContrib-ccaefff387102ab534e4c0456cb863b593a88047.tar.gz XMonadContrib-ccaefff387102ab534e4c0456cb863b593a88047.tar.xz XMonadContrib-ccaefff387102ab534e4c0456cb863b593a88047.zip |
ConstrainedResize: haddock updates
darcs-hash:20071123195643-bd4d7-197d9c178b0d54a54122a261517ff2629cc7a185.gz
Diffstat (limited to 'XMonad')
-rw-r--r-- | XMonad/Actions/ConstrainedResize.hs | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/XMonad/Actions/ConstrainedResize.hs b/XMonad/Actions/ConstrainedResize.hs index cb49d0a..3dd1569 100644 --- a/XMonad/Actions/ConstrainedResize.hs +++ b/XMonad/Actions/ConstrainedResize.hs @@ -3,13 +3,13 @@ -- Module : XMonad.Actions.ConstrainedResize -- Copyright : (c) Dougal Stanton -- License : BSD3-style (see LICENSE) --- +-- -- Maintainer : <dougal@dougalstanton.net> -- Stability : unstable -- Portability : unportable -- -- Lets you constrain the aspect ratio of a floating --- window by holding shift while you resize. +-- window (by, say, holding shift while you resize). -- -- Useful for making a nice circular XClock window. -- @@ -27,20 +27,22 @@ import Graphics.X11.Xlib import Graphics.X11.Xlib.Extras -- $usage --- Put something like this in your Config.hs file: +-- +-- You can use this module with the following in your @~\/.xmonad\/xmonad.hs@: -- -- > import qualified XMonad.Actions.ConstrainedResize as Sqr --- > mouseBindings = M.fromList --- > [ ... +-- +-- Then add something like the following to your mouse bindings: +-- -- > , ((modMask, button3), (\w -> focus w >> Sqr.mouseResizeWindow w False)) --- > , ((modMask .|. shiftMask, button3), (\w -> focus w >> Sqr.mouseResizeWindow w True )) ] +-- > , ((modMask .|. shiftMask, button3), (\w -> focus w >> Sqr.mouseResizeWindow w True )) -- --- The line without the shiftMask replaces the standard mouse resize function call, so it's --- not completely necessary but seems neater this way. - --- %import qualified XMonad.Actions.ConstrainedResize as Sqr --- %mousebind , ((modMask, button3), (\\w -> focus w >> Sqr.mouseResizeWindow w False)) --- %mousebind , ((modMask .|. shiftMask, button3), (\\w -> focus w >> Sqr.mouseResizeWindow w True)) +-- The line without the shiftMask replaces the standard mouse resize +-- function call, so it's not completely necessary but seems neater +-- this way. +-- +-- For detailed instructions on editing your mouse bindings, see +-- "XMonad.Doc.Extending#Editing_mouse_bindings". -- | Resize (floating) window with optional aspect ratio constraints. mouseResizeWindow :: Window -> Bool -> X () |