Sophie

Sophie

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

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.Prompt.AppLauncher</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-Prompt-AppLauncher.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/XMonad-Prompt-AppLauncher.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>zhen.sydow@gmail.com</td></tr><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">XMonad.Prompt.AppLauncher</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">Use case: launching gimp with file
</a></li><li><a href="#g:3">Types
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A module for launch applicationes that receive parameters in the command
 line. The launcher call a prompt to get the parameters.
</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:launchApp">launchApp</a> :: <a href="XMonad-Prompt.html#t:XPConfig">XPConfig</a> -&gt; <a href="XMonad-Prompt-AppLauncher.html#t:Application">Application</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">module <a href="XMonad-Prompt.html">XMonad.Prompt</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:Application">Application</a> = <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"><span class="keyword">data</span>  <a href="#t:AppPrompt">AppPrompt</a> </li></ul></div><div id="interface"><h1 id="g:1">Usage
</h1><div class="doc"><p>This module is intended to allow the launch of the same application
   but changing the parameters using the user response. For example, when
   you want to open a image in gimp program, you can open gimp and then use
   the File Menu to open the image or you can use this module to select
   the image in the command line.
</p><p>We use Prompt to get the user command line. This also allow to autoexpand
   the names of the files when we are writing the command line.
</p></div><div class="top"><p class="src"><a name="v:launchApp" class="def">launchApp</a> :: <a href="XMonad-Prompt.html#t:XPConfig">XPConfig</a> -&gt; <a href="XMonad-Prompt-AppLauncher.html#t:Application">Application</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-Prompt-AppLauncher.html#launchApp" class="link">Source</a></p><div class="doc"><p>Get the user's response to a prompt an launch an application using the
   input as command parameters of the application.
</p></div></div><div class="top"><p class="src">module <a href="XMonad-Prompt.html">XMonad.Prompt</a></p></div><h1 id="g:2">Use case: launching gimp with file
</h1><div class="doc"><p>First, you need to import necessary modules. Prompt is used to get the promp
configuration and the AppLauncher module itself.
</p><pre> import XMonad.Prompt
 import XMonad.Prompt.AppLauncher as AL
</pre><p>Then you can add the bindings to the applications.
</p><pre> ...
 , ((modm, xK_g), AL.launchApp defaultXPConfig &quot;gimp&quot; )
 , ((modm, xK_g), AL.launchApp defaultXPConfig &quot;evince&quot; )
 ...
</pre></div><h1 id="g:3">Types
</h1><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Application" class="def">Application</a> = <a href="/usr/share/doc/ghc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a><a href="src/XMonad-Prompt-AppLauncher.html#Application" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:AppPrompt" class="def">AppPrompt</a>  <a href="src/XMonad-Prompt-AppLauncher.html#AppPrompt" class="link">Source</a></p><div class="subs instances"><p id="control.i:AppPrompt" class="caption collapser" onclick="toggleSection('i:AppPrompt')">Instances</p><div id="section.i:AppPrompt" class="show"><table><tr><td class="src"><a href="XMonad-Prompt.html#t:XPrompt">XPrompt</a> <a href="XMonad-Prompt-AppLauncher.html#t:AppPrompt">AppPrompt</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>