From 8a72ef15151bfb2a812449dd6a19df41f9f2930c Mon Sep 17 00:00:00 2001 From: Brent Yorgey Date: Fri, 23 Nov 2007 21:17:02 +0100 Subject: DeManage: haddock updates darcs-hash:20071123201702-bd4d7-db03002154670be3e0ab2c9f477d334f6399f40d.gz --- XMonad/Actions/DeManage.hs | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'XMonad/Actions/DeManage.hs') diff --git a/XMonad/Actions/DeManage.hs b/XMonad/Actions/DeManage.hs index 9bff48a..d7949a6 100644 --- a/XMonad/Actions/DeManage.hs +++ b/XMonad/Actions/DeManage.hs @@ -8,17 +8,19 @@ -- Stability : unstable -- Portability : unportable -- --- This module provides a method to cease management of a window, without --- unmapping it. This is especially useful for applications like kicker and --- gnome-panel. +-- This module provides a method to cease management of a window +-- without unmapping it. This is especially useful for applications +-- like kicker and gnome-panel. -- -- To make a panel display correctly with xmonad: -- --- * Determine the pixel size of the panel, add that value to defaultGaps +-- * Determine the pixel size of the panel, add that value to +-- 'XMonad.Core.XConfig.defaultGaps' -- -- * Launch the panel -- --- * Give the panel window focus, then press mod-d +-- * Give the panel window focus, then press @mod-d@ (or whatever key +-- you have bound 'demanage' to) -- -- * Convince the panel to move\/resize to the correct location. Changing the -- panel's position setting several times seems to work. @@ -38,19 +40,18 @@ import Control.Monad.State import Graphics.X11 (Window) -- $usage --- To use demanage, add this import: +-- To use demanage, add this import to your @~\/.xmonad\/xmonad.hs@: -- -- > import XMonad.Actions.DeManage -- --- And add a keybinding to it: +-- And add a keybinding, such as: -- -- > , ((modMask, xK_d ), withFocused demanage) -- +-- For detailed instructions on editing your key bindings, see +-- "XMonad.Doc.Extending#Editing_key_bindings". --- %import XMonad.Actions.DeManage --- %keybind , ((modMask, xK_d ), withFocused demanage) - --- | Stop managing the current focused window. +-- | Stop managing the currently focused window. demanage :: Window -> X () demanage w = do -- use modify to defeat automatic 'unmanage' calls. -- cgit v1.2.3