Sophie

Sophie

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

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.ComboP</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-ComboP.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/XMonad-Layout-ComboP.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>Konstantin Sobolev &lt;konstantin.sobolev@gmail.com&gt;</td></tr><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">XMonad.Layout.ComboP</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>A layout that combines multiple layouts and allows to specify where to put
 new 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:combineTwoP">combineTwoP</a> :: (<a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:LayoutClass">LayoutClass</a> super <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a>, <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:LayoutClass">LayoutClass</a> l1 <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a>, <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:LayoutClass">LayoutClass</a> l2 <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a>) =&gt; super <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a> -&gt; l1 <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a> -&gt; l2 <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a> -&gt; <a href="XMonad-Layout-ComboP.html#t:Property">Property</a> -&gt; <a href="XMonad-Layout-ComboP.html#t:CombineTwoP">CombineTwoP</a> (super <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a>) l1 l2 <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a></li><li class="src short"><span class="keyword">data</span>  <a href="#t:CombineTwoP">CombineTwoP</a> l l1 l2 a</li><li class="src short"><span class="keyword">data</span>  <a href="#t:SwapWindow">SwapWindow</a> <ul class="subs"><li>= <a href="#v:SwapWindow">SwapWindow</a>  </li><li>| <a href="#v:SwapWindowN">SwapWindowN</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a>  </li></ul></li><li class="src short"><span class="keyword">data</span>  <a href="#t:Property">Property</a> <ul class="subs"><li>= <a href="#v:Title">Title</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>  </li><li>| <a href="#v:ClassName">ClassName</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>  </li><li>| <a href="#v:Resource">Resource</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>  </li><li>| <a href="#v:Role">Role</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>  </li><li>| <a href="#v:Machine">Machine</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>  </li><li>| <a href="#v:And">And</a> <a href="XMonad-Layout-ComboP.html#t:Property">Property</a> <a href="XMonad-Layout-ComboP.html#t:Property">Property</a>  </li><li>| <a href="#v:Or">Or</a> <a href="XMonad-Layout-ComboP.html#t:Property">Property</a> <a href="XMonad-Layout-ComboP.html#t:Property">Property</a>  </li><li>| <a href="#v:Not">Not</a> <a href="XMonad-Layout-ComboP.html#t:Property">Property</a>  </li><li>| <a href="#v:Const">Const</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</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.ComboP
</pre><p>and add something like
</p><pre> combineTwoP (TwoPane 0.03 0.5) (tabbed shrinkText defaultTConf) (tabbed shrinkText defaultTConf) (ClassName &quot;Firefox&quot;)
</pre><p>to your layouts. This way all windows with class = &quot;Firefox&quot; will always go
 to the left pane, all others - to the right.
</p><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><code><a href="XMonad-Layout-ComboP.html#v:combineTwoP">combineTwoP</a></code> is a simple layout combinator based on <code>combineTwo</code> from Combo, with
 addition of a <code><a href="XMonad-Layout-ComboP.html#t:Property">Property</a></code> which tells where to put new windows. Windows mathing
 the property will go into the first part, all others will go into the second
 part. It supports <code>Move</code> messages as <code>combineTwo</code> does, but it also introduces
 <code><a href="XMonad-Layout-ComboP.html#t:SwapWindow">SwapWindow</a></code> message which sends focused window to the other part. It is
 required because <code>Move</code> commands don't work when one of the parts is empty.
 To use it, import &quot;XMonad.Layout.WindowNavigation&quot;, and add the following key
 bindings (or something similar):
</p><pre>    , ((modm .|. controlMask .|. shiftMask, xK_Right), sendMessage $ Move R)
    , ((modm .|. controlMask .|. shiftMask, xK_Left ), sendMessage $ Move L)
    , ((modm .|. controlMask .|. shiftMask, xK_Up   ), sendMessage $ Move U)
    , ((modm .|. controlMask .|. shiftMask, xK_Down ), sendMessage $ Move D)
    , ((modm .|. controlMask .|. shiftMask, xK_s    ), sendMessage $ SwapWindow)
</pre><p>For detailed instruction on editing the key binding see
 <a href="XMonad-Doc-Extending.html#Editing_key_bindings">XMonad.Doc.Extending</a>.
</p></div><div class="top"><p class="src"><a name="v:combineTwoP" class="def">combineTwoP</a> :: (<a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:LayoutClass">LayoutClass</a> super <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a>, <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:LayoutClass">LayoutClass</a> l1 <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a>, <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:LayoutClass">LayoutClass</a> l2 <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a>) =&gt; super <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a> -&gt; l1 <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a> -&gt; l2 <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a> -&gt; <a href="XMonad-Layout-ComboP.html#t:Property">Property</a> -&gt; <a href="XMonad-Layout-ComboP.html#t:CombineTwoP">CombineTwoP</a> (super <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a>) l1 l2 <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a><a href="src/XMonad-Layout-ComboP.html#combineTwoP" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:CombineTwoP" class="def">CombineTwoP</a> l l1 l2 a <a href="src/XMonad-Layout-ComboP.html#CombineTwoP" class="link">Source</a></p><div class="subs instances"><p id="control.i:CombineTwoP" class="caption collapser" onclick="toggleSection('i:CombineTwoP')">Instances</p><div id="section.i:CombineTwoP" class="show"><table><tr><td class="src">(<a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:LayoutClass">LayoutClass</a> l (), <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:LayoutClass">LayoutClass</a> l1 <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a>, <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:LayoutClass">LayoutClass</a> l2 <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</a>) =&gt; <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:LayoutClass">LayoutClass</a> (<a href="XMonad-Layout-ComboP.html#t:CombineTwoP">CombineTwoP</a> (l ()) l1 l2) <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</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> l, <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> a, <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (l1 a), <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (l2 a)) =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Read.html#t:Read">Read</a> (<a href="XMonad-Layout-ComboP.html#t:CombineTwoP">CombineTwoP</a> l l1 l2 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> l, <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> a, <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (l1 a), <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (l2 a)) =&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> (<a href="XMonad-Layout-ComboP.html#t:CombineTwoP">CombineTwoP</a> l l1 l2 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:SwapWindow" class="def">SwapWindow</a>  <a href="src/XMonad-Layout-ComboP.html#SwapWindow" class="link">Source</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:SwapWindow" class="def">SwapWindow</a></td><td class="doc"><p>Swap window between panes
</p></td></tr><tr><td class="src"><a name="v:SwapWindowN" class="def">SwapWindowN</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Swap window between panes in the N-th nested ComboP. <code>SwapWindowN 0</code> equals to SwapWindow
</p></td></tr></table></div><div class="subs instances"><p id="control.i:SwapWindow" class="caption collapser" onclick="toggleSection('i:SwapWindow')">Instances</p><div id="section.i:SwapWindow" class="show"><table><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-ComboP.html#t:SwapWindow">SwapWindow</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-ComboP.html#t:SwapWindow">SwapWindow</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-Typeable-Internal.html#t:Typeable">Typeable</a> <a href="XMonad-Layout-ComboP.html#t:SwapWindow">SwapWindow</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#t:Message">Message</a> <a href="XMonad-Layout-ComboP.html#t:SwapWindow">SwapWindow</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:Property" class="def">Property</a>  <a href="src/XMonad-Util-WindowProperties.html#Property" class="link">Source</a></p><div class="doc"><p>Most of the property constructors are quite self-explaining.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Title" class="def">Title</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:ClassName" class="def">ClassName</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:Resource" class="def">Resource</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:Role" class="def">Role</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>WM_WINDOW_ROLE property
</p></td></tr><tr><td class="src"><a name="v:Machine" class="def">Machine</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>WM_CLIENT_MACHINE property
</p></td></tr><tr><td class="src"><a name="v:And" class="def">And</a> <a href="XMonad-Layout-ComboP.html#t:Property">Property</a> <a href="XMonad-Layout-ComboP.html#t:Property">Property</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:Or" class="def">Or</a> <a href="XMonad-Layout-ComboP.html#t:Property">Property</a> <a href="XMonad-Layout-ComboP.html#t:Property">Property</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:Not" class="def">Not</a> <a href="XMonad-Layout-ComboP.html#t:Property">Property</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:Const" class="def">Const</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:Property" class="caption collapser" onclick="toggleSection('i:Property')">Instances</p><div id="section.i:Property" class="show"><table><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-ComboP.html#t:Property">Property</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-ComboP.html#t:Property">Property</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="XMonad-Layout-LayoutBuilderP.html#t:Predicate">Predicate</a> <a href="XMonad-Layout-ComboP.html#t:Property">Property</a> <a href="/usr/share/doc/ghc/html/libraries/X11-1.6.0/Graphics-X11-Types.html#t:Window">Window</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>