Sophie

Sophie

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

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.Actions.SwapWorkspaces</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-Actions-SwapWorkspaces.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/XMonad-Actions-SwapWorkspaces.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>Devin Mullins &lt;me@twifkak.com&gt;</td></tr><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">XMonad.Actions.SwapWorkspaces</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>Lets you swap workspace tags, so you can keep related ones next to
 each other, without having to move individual 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:swapWithCurrent">swapWithCurrent</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> i =&gt; i -&gt; <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-StackSet.html#t:StackSet">StackSet</a> i l a s sd -&gt; <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-StackSet.html#t:StackSet">StackSet</a> i l a s sd</li><li class="src short"><a href="#v:swapTo">swapTo</a> :: <a href="XMonad-Actions-SwapWorkspaces.html#t:Direction1D">Direction1D</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"><a href="#v:swapWorkspaces">swapWorkspaces</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> i =&gt; i -&gt; i -&gt; <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-StackSet.html#t:StackSet">StackSet</a> i l a s sd -&gt; <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-StackSet.html#t:StackSet">StackSet</a> i l a s sd</li><li class="src short"><span class="keyword">data</span>  <a href="#t:Direction1D">Direction1D</a> <ul class="subs"><li>= <a href="#v:Next">Next</a>  </li><li>| <a href="#v:Prev">Prev</a>  </li></ul></li></ul></div><div id="interface"><h1 id="g:1">Usage
</h1><div class="doc"><p>Add this import to your <code>~/.xmonad/xmonad.hs</code>:
</p><pre> import XMonad.Actions.SwapWorkspaces
</pre><p>Then throw something like this in your keys definition:
</p><pre> ++
 [((modm .|. controlMask, k), windows $ swapWithCurrent i)
     | (i, k) &lt;- zip workspaces [xK_1 ..]]
</pre><p>After installing this update, if you're on workspace 1, hitting mod-ctrl-5
 will swap workspaces 1 and 5.
</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></div><div class="top"><p class="src"><a name="v:swapWithCurrent" class="def">swapWithCurrent</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> i =&gt; i -&gt; <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-StackSet.html#t:StackSet">StackSet</a> i l a s sd -&gt; <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-StackSet.html#t:StackSet">StackSet</a> i l a s sd<a href="src/XMonad-Actions-SwapWorkspaces.html#swapWithCurrent" class="link">Source</a></p><div class="doc"><p>Swaps the currently focused workspace with the given workspace tag, via
   <code>swapWorkspaces</code>.
</p></div></div><div class="top"><p class="src"><a name="v:swapTo" class="def">swapTo</a> :: <a href="XMonad-Actions-SwapWorkspaces.html#t:Direction1D">Direction1D</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-Actions-SwapWorkspaces.html#swapTo" class="link">Source</a></p><div class="doc"><p>Say <code>swapTo Next</code> or <code>swapTo Prev</code> to move your current workspace.
 This is an <code>X ()</code> so can be hooked up to your keybindings directly.
</p></div></div><div class="top"><p class="src"><a name="v:swapWorkspaces" class="def">swapWorkspaces</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> i =&gt; i -&gt; i -&gt; <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-StackSet.html#t:StackSet">StackSet</a> i l a s sd -&gt; <a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-StackSet.html#t:StackSet">StackSet</a> i l a s sd<a href="src/XMonad-Actions-SwapWorkspaces.html#swapWorkspaces" class="link">Source</a></p><div class="doc"><p>Takes two workspace tags and an existing XMonad.StackSet and returns a new
   one with the two corresponding workspaces' tags swapped.
</p></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Direction1D" class="def">Direction1D</a>  <a href="src/XMonad-Util-Types.html#Direction1D" class="link">Source</a></p><div class="doc"><p>One-dimensional directions:
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:Next" class="def">Next</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:Prev" class="def">Prev</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:Direction1D" class="caption collapser" onclick="toggleSection('i:Direction1D')">Instances</p><div id="section.i:Direction1D" class="show"><table><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-Actions-SwapWorkspaces.html#t:Direction1D">Direction1D</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-Actions-SwapWorkspaces.html#t:Direction1D">Direction1D</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-Actions-SwapWorkspaces.html#t:Direction1D">Direction1D</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-Actions-SwapWorkspaces.html#t:Direction1D">Direction1D</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>