Sophie

Sophie

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

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.RandomBackground</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-RandomBackground.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/XMonad-Actions-RandomBackground.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>&lt;vogt.adam@gmail.com&gt;</td></tr><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">XMonad.Actions.RandomBackground</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>An action to start terminals with a random background color
</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:randomBg-39-">randomBg'</a> :: <a href="/usr/share/doc/ghc/html/libraries/transformers-0.3.0.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m =&gt; <a href="XMonad-Actions-RandomBackground.html#t:RandomColor">RandomColor</a> -&gt; m <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:randomBg">randomBg</a> :: <a href="XMonad-Actions-RandomBackground.html#t:RandomColor">RandomColor</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:RandomColor">RandomColor</a> <ul class="subs"><li>= <a href="#v:RGB">RGB</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a>  </li><li>| <a href="#v:HSV">HSV</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a>  </li></ul></li></ul></div><div id="interface"><h1 id="g:1">Usage
</h1><div class="doc"><p>Add to your keybindings something like:
</p><pre> ,((modm .|. shiftMask, xK_Return), randomBg $ HSV 0xff 0x20
</pre></div><div class="top"><p class="src"><a name="v:randomBg-39-" class="def">randomBg'</a> :: <a href="/usr/share/doc/ghc/html/libraries/transformers-0.3.0.0/Control-Monad-IO-Class.html#t:MonadIO">MonadIO</a> m =&gt; <a href="XMonad-Actions-RandomBackground.html#t:RandomColor">RandomColor</a> -&gt; m <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a><a href="src/XMonad-Actions-RandomBackground.html#randomBg%27" class="link">Source</a></p><div class="doc"><p><code>randomBg'</code> produces a random hex number in the form <code>'#xxyyzz'</code>
</p></div></div><div class="top"><p class="src"><a name="v:randomBg" class="def">randomBg</a> :: <a href="XMonad-Actions-RandomBackground.html#t:RandomColor">RandomColor</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-RandomBackground.html#randomBg" class="link">Source</a></p><div class="doc"><p><code>randomBg</code> starts a terminal with the background color taken from <code><a href="XMonad-Actions-RandomBackground.html#v:randomBg-39-">randomBg'</a></code>
</p><p>This depends on the your <code><a href="/usr/share/doc/ghc/html/libraries/xmonad-0.11/XMonad-Core.html#v:terminal">terminal</a></code> configuration field accepting an
 argument like <code>-bg '#ff0023'</code>
</p></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:RandomColor" class="def">RandomColor</a>  <a href="src/XMonad-Actions-RandomBackground.html#RandomColor" class="link">Source</a></p><div class="doc"><p>RandomColor fixes constraints when generating random colors. All
 parameters should be in the range 0 -- 0xff
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:RGB" class="def">RGB</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</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>specify the minimum and maximum lowest values for each color channel.
</p></td></tr><tr><td class="src"><a name="v:HSV" class="def">HSV</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>specify the saturation and value, leaving the hue random.
</p></td></tr></table></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>