Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 420a649e6f65db30aa7451f64d08ff92 > files > 663

ghc-xmonad-contrib-devel-0.9.2-4.fc16.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>XMonad.Layout.Minimize</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_XMonad-Layout-Minimize.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/XMonad-Layout-Minimize.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">xmonad-contrib-0.9.2: Third party extensions for xmonad</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>not portable</td></tr><tr><th>Stability</th><td>unstable</td></tr><tr><th>Maintainer</th><td>jan.vornberger@informatik.uni-oldenburg.de</td></tr></table><p class="caption">XMonad.Layout.Minimize</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Usage
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Makes it possible to minimize windows, temporarily removing them
 from the layout until they are restored.
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:minimize">minimize</a> :: LayoutClass l <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Types.html#t:Window">Window</a> =&gt; l <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Types.html#t:Window">Window</a> -&gt; <a href="XMonad-Layout-LayoutModifier.html#t:ModifiedLayout">ModifiedLayout</a> Minimize l <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Types.html#t:Window">Window</a></li><li class="src short"><span class="keyword">data</span>  <a href="#t:MinimizeMsg">MinimizeMsg</a> <ul class="subs"><li>= <a href="#v:MinimizeWin">MinimizeWin</a> <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Types.html#t:Window">Window</a>  </li><li>| <a href="#v:RestoreMinimizedWin">RestoreMinimizedWin</a> <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Types.html#t:Window">Window</a>  </li><li>| <a href="#v:RestoreNextMinimizedWin">RestoreNextMinimizedWin</a>  </li></ul></li></ul></div><div id="interface"><h1 id="g:1">Usage
</h1><div class="doc"><p>You can use this module with the following in your <code>~/.xmonad/xmonad.hs</code>:
</p><pre> import XMonad.Layout.Minimize
</pre><p>Then edit your <code>layoutHook</code> by adding the Minimize layout modifier:
</p><pre> myLayout = minimize (Tall 1 (3/100) (1/2)) ||| Full ||| etc..
 main = xmonad defaultConfig { layoutHook = myLayout }
</pre><p>For more detailed instructions on editing the layoutHook see:
</p><p><a href="XMonad-Doc-Extending.html#Editing_the_layout_hook">XMonad.Doc.Extending</a>
</p><p>In the key-bindings, do something like:
</p><pre>        , ((modm,               xK_m     ), withFocused (\f -&gt; sendMessage (MinimizeWin f)))
        , ((modm .|. shiftMask, xK_m     ), sendMessage RestoreNextMinimizedWin)
</pre><p>The first action will minimize the focused window, while the second one will restore
 the next minimized window.
</p><p>For detailed instruction on editing the key binding see:
</p><p><a href="XMonad-Doc-Extending.html#Editing_key_bindings">XMonad.Doc.Extending</a>.
</p><p>The module is designed to work together with <a href="XMonad-Layout-BoringWindows.html">XMonad.Layout.BoringWindows</a> so
 that minimized windows will be skipped when switching the focus window with
 the keyboard.  Use the <code><a href="XMonad-Layout-BoringWindows.html#v:boringAuto">boringAuto</a></code> function.
</p><p>Also see <a href="XMonad-Hooks-RestoreMinimized.html">XMonad.Hooks.RestoreMinimized</a> if you want to be able to restore
 minimized windows from your taskbar.
</p></div><div class="top"><p class="src"><a name="v:minimize" class="def">minimize</a> :: LayoutClass l <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Types.html#t:Window">Window</a> =&gt; l <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Types.html#t:Window">Window</a> -&gt; <a href="XMonad-Layout-LayoutModifier.html#t:ModifiedLayout">ModifiedLayout</a> Minimize l <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Types.html#t:Window">Window</a><a href="src/XMonad-Layout-Minimize.html#minimize" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:MinimizeMsg" class="def">MinimizeMsg</a>  <a href="src/XMonad-Layout-Minimize.html#MinimizeMsg" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:MinimizeWin" class="def">MinimizeWin</a> <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Types.html#t:Window">Window</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:RestoreMinimizedWin" class="def">RestoreMinimizedWin</a> <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Types.html#t:Window">Window</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:RestoreNextMinimizedWin" class="def">RestoreNextMinimizedWin</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:MinimizeMsg" class="caption collapser" onclick="toggleSection('i:MinimizeMsg')">Instances</p><div id="section.i:MinimizeMsg" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="XMonad-Layout-Minimize.html#t:MinimizeMsg">MinimizeMsg</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Typeable.html#t:Typeable">Typeable</a> <a href="XMonad-Layout-Minimize.html#t:MinimizeMsg">MinimizeMsg</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">Message <a href="XMonad-Layout-Minimize.html#t:MinimizeMsg">MinimizeMsg</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.9.2</p></div></body></html>