Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 16551e78563a5b49ff9624ee1c8b8101 > files > 829

ghc-xmonad-contrib-devel-0.11-1.1.fc18.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.LimitWindows</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-LimitWindows.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/XMonad-Layout-LimitWindows.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.11: Third party extensions for xmonad</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>unportable</td></tr><tr><th>Stability</th><td>unstable</td></tr><tr><th>Maintainer</th><td>vogt.adam@gmail.com</td></tr><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">XMonad.Layout.LimitWindows</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Usage
</a></li><li><a href="#g:2">Layout Modifiers
</a></li><li><a href="#g:3">Change the number of windows
</a></li><li><a href="#g:4">Types
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A layout modifier that limits the number of windows that can be shown.
 See <a href="XMonad-Layout-Minimize.html">XMonad.Layout.Minimize</a> for manually setting hidden windows.
</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:limitWindows">limitWindows</a> ::  <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; l a -&gt; <a href="XMonad-Layout-LayoutModifier.html#t:ModifiedLayout">ModifiedLayout</a> <a href="XMonad-Layout-LimitWindows.html#t:LimitWindows">LimitWindows</a> l a</li><li class="src short"><a href="#v:limitSlice">limitSlice</a> ::  <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; l a -&gt; <a href="XMonad-Layout-LayoutModifier.html#t:ModifiedLayout">ModifiedLayout</a> <a href="XMonad-Layout-LimitWindows.html#t:LimitWindows">LimitWindows</a> l a</li><li class="src short"><a href="#v:limitSelect">limitSelect</a> ::  <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; l a -&gt; <a href="XMonad-Layout-LayoutModifier.html#t:ModifiedLayout">ModifiedLayout</a> <a href="XMonad-Layout-LimitWindows.html#t:Selection">Selection</a> l a</li><li class="src short"><a href="#v:increaseLimit">increaseLimit</a> :: <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:decreaseLimit">decreaseLimit</a> :: <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:setLimit">setLimit</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><span class="keyword">data</span>  <a href="#t:LimitWindows">LimitWindows</a> a</li><li class="src short"><span class="keyword">data</span>  <a href="#t:Selection">Selection</a> a</li></ul></div><div id="interface"><h1 id="g:1">Usage
</h1><div class="doc"><p>To use this module, add the following import to <code>~/.xmonad/xmonad.hs</code>:
</p><pre> import XMonad.Layout.LimitWindows
</pre><pre> myLayout = limitWindows 6 $ Tall 1 0.03 0.5 ||| Full ||| RandomOtherLayout...
 main = xmonad defaultConfig { layoutHook = myLayout }
</pre><p>You may also be interested in dynamically changing the number dynamically,
 by binding keys to the <code><a href="XMonad-Layout-LimitWindows.html#v:increaseLimit">increaseLimit</a></code>, <code><a href="XMonad-Layout-LimitWindows.html#v:decreaseLimit">decreaseLimit</a></code>, or <code><a href="XMonad-Layout-LimitWindows.html#v:setLimit">setLimit</a></code>
 actions.
</p><p>For detailed instructions on editing your key bindings, see
 <a href="XMonad-Doc-Extending.html#Editing_key_bindings">XMonad.Doc.Extending</a>.
</p><p>See also <code><a href="XMonad-Layout-BoringWindows.html#v:boringAuto">boringAuto</a></code> for keybindings that skip
 the hidden windows.
</p></div><h1 id="g:2">Layout Modifiers
</h1><div class="top"><p class="src"><a name="v:limitWindows" class="def">limitWindows</a> ::  <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; l a -&gt; <a href="XMonad-Layout-LayoutModifier.html#t:ModifiedLayout">ModifiedLayout</a> <a href="XMonad-Layout-LimitWindows.html#t:LimitWindows">LimitWindows</a> l a<a href="src/XMonad-Layout-LimitWindows.html#limitWindows" class="link">Source</a></p><div class="doc"><p>Only display the first <code>n</code> windows.
</p></div></div><div class="top"><p class="src"><a name="v:limitSlice" class="def">limitSlice</a> ::  <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; l a -&gt; <a href="XMonad-Layout-LayoutModifier.html#t:ModifiedLayout">ModifiedLayout</a> <a href="XMonad-Layout-LimitWindows.html#t:LimitWindows">LimitWindows</a> l a<a href="src/XMonad-Layout-LimitWindows.html#limitSlice" class="link">Source</a></p><div class="doc"><p>Only display <code>n</code> windows around the focused window. This makes sense with
 layouts that arrange windows linearily, like <code><a href="XMonad-Layout-Layout.html#t:Accordion">Accordion</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:limitSelect" class="def">limitSelect</a> ::  <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; l a -&gt; <a href="XMonad-Layout-LayoutModifier.html#t:ModifiedLayout">ModifiedLayout</a> <a href="XMonad-Layout-LimitWindows.html#t:Selection">Selection</a> l a<a href="src/XMonad-Layout-LimitWindows.html#limitSelect" class="link">Source</a></p><div class="doc"><p>Only display the first <code>m</code> windows and <code>r</code> others.
 The <code>IncMasterN</code> message will change <code>m</code>, as well as passing it onto the
 underlying layout.
</p></div></div><h1 id="g:3">Change the number of windows
</h1><div class="top"><p class="src"><a name="v:increaseLimit" class="def">increaseLimit</a> :: <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/XMonad-Layout-LimitWindows.html#increaseLimit" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:decreaseLimit" class="def">decreaseLimit</a> :: <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/XMonad-Layout-LimitWindows.html#decreaseLimit" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:setLimit" class="def">setLimit</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:X">X</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/XMonad-Layout-LimitWindows.html#setLimit" class="link">Source</a></p></div><h1 id="g:4">Types
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:LimitWindows" class="def">LimitWindows</a> a <a href="src/XMonad-Layout-LimitWindows.html#LimitWindows" class="link">Source</a></p><div class="subs instances"><p id="control.i:LimitWindows" class="caption collapser" onclick="toggleSection('i:LimitWindows')">Instances</p><div id="section.i:LimitWindows" class="show"><table><tr><td class="src"><a href="XMonad-Layout-LayoutModifier.html#t:LayoutModifier">LayoutModifier</a> <a href="XMonad-Layout-LimitWindows.html#t:LimitWindows">LimitWindows</a> a</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (<a href="XMonad-Layout-LimitWindows.html#t:LimitWindows">LimitWindows</a> a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (<a href="XMonad-Layout-LimitWindows.html#t:LimitWindows">LimitWindows</a> a)</td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Selection" class="def">Selection</a> a <a href="src/XMonad-Layout-LimitWindows.html#Selection" class="link">Source</a></p><div class="subs instances"><p id="control.i:Selection" class="caption collapser" onclick="toggleSection('i:Selection')">Instances</p><div id="section.i:Selection" class="show"><table><tr><td class="src"><a href="XMonad-Layout-LayoutModifier.html#t:LayoutModifier">LayoutModifier</a> <a href="XMonad-Layout-LimitWindows.html#t:Selection">Selection</a> a</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> (<a href="XMonad-Layout-LimitWindows.html#t:Selection">Selection</a> a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (<a href="XMonad-Layout-LimitWindows.html#t:Selection">Selection</a> a)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (<a href="XMonad-Layout-LimitWindows.html#t:Selection">Selection</a> 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.10.0</p></div></body></html>