Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 420a649e6f65db30aa7451f64d08ff92 > files > 569

ghc-xmonad-contrib-devel-0.9.2-4.fc16.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.FloatKeys</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-FloatKeys.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/XMonad-Actions-FloatKeys.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.9.2: 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>stable</td></tr><tr><th>Maintainer</th><td>Karsten Schoelzel &lt;kuser@gmx.de&gt;</td></tr></table><p class="caption">XMonad.Actions.FloatKeys</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>Move and resize floating 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:keysMoveWindow">keysMoveWindow</a> :: D -&gt; <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Types.html#t:Window">Window</a> -&gt; X <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:keysMoveWindowTo">keysMoveWindowTo</a> :: P -&gt; G -&gt; <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Types.html#t:Window">Window</a> -&gt; X <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:keysResizeWindow">keysResizeWindow</a> :: D -&gt; G -&gt; <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Types.html#t:Window">Window</a> -&gt; X <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:keysAbsResizeWindow">keysAbsResizeWindow</a> :: D -&gt; D -&gt; <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Types.html#t:Window">Window</a> -&gt; X <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></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.Actions.FloatKeys
</pre><p>Then add appropriate key bindings, for example:
</p><pre>  , ((modm,               xK_d     ), withFocused (keysResizeWindow (-10,-10) (1,1)))
  , ((modm,               xK_s     ), withFocused (keysResizeWindow (10,10) (1,1)))
  , ((modm .|. shiftMask, xK_d     ), withFocused (keysAbsResizeWindow (-10,-10) (1024,752)))
  , ((modm .|. shiftMask, xK_s     ), withFocused (keysAbsResizeWindow (10,10) (1024,752)))
  , ((modm,               xK_a     ), withFocused (keysMoveWindowTo (512,384) (1%2,1%2)))
</pre><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:keysMoveWindow" class="def">keysMoveWindow</a> :: D -&gt; <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Types.html#t:Window">Window</a> -&gt; X <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/XMonad-Actions-FloatKeys.html#keysMoveWindow" class="link">Source</a></p><div class="doc"><p><code>keysMoveWindow (dx, dy)</code> moves the window by <code>dx</code> pixels to the
   right and <code>dy</code> pixels down.
</p></div></div><div class="top"><p class="src"><a name="v:keysMoveWindowTo" class="def">keysMoveWindowTo</a> :: P -&gt; G -&gt; <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Types.html#t:Window">Window</a> -&gt; X <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/XMonad-Actions-FloatKeys.html#keysMoveWindowTo" class="link">Source</a></p><div class="doc"><p><code>keysMoveWindowTo (x, y) (gx, gy)</code> moves the window relative
   point <code>(gx, gy)</code> to the point <code>(x,y)</code>, where <code>(gx,gy)</code> gives a
   position relative to the window border, i.e.  <code>gx = 0</code> is the left
   border, <code>gx = 1</code> is the right border, <code>gy = 0</code> is the top border, and
   <code>gy = 1</code> the bottom border.
</p><p>For example, on a 1024x768 screen:
</p><pre> keysMoveWindowTo (512,384) (1%2, 1%2) -- center the window on screen
 keysMoveWindowTo (1024,0) (1, 0)      -- put window in the top right corner
</pre></div></div><div class="top"><p class="src"><a name="v:keysResizeWindow" class="def">keysResizeWindow</a> :: D -&gt; G -&gt; <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Types.html#t:Window">Window</a> -&gt; X <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/XMonad-Actions-FloatKeys.html#keysResizeWindow" class="link">Source</a></p><div class="doc"><p><code>keysResizeWindow (dx, dy) (gx, gy)</code> changes the width by <code>dx</code>
   and the height by <code>dy</code>, leaving the window-relative point <code>(gx,
   gy)</code> fixed.
</p><p>For example:
</p><pre> keysResizeWindow (10, 0) (0, 0)      -- make the window 10 pixels larger to the right
 keysResizeWindow (10, 0) (0, 1%2)    -- does the same, unless sizeHints are applied
 keysResizeWindow (10, 10) (1%2, 1%2) -- add 5 pixels on each side
 keysResizeWindow (-10, -10) (0, 1)   -- shrink the window in direction of the bottom-left corner
</pre></div></div><div class="top"><p class="src"><a name="v:keysAbsResizeWindow" class="def">keysAbsResizeWindow</a> :: D -&gt; D -&gt; <a href="/usr/share/doc/ghc/html/libraries/X11-1.5.0.0/Graphics-X11-Types.html#t:Window">Window</a> -&gt; X <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/XMonad-Actions-FloatKeys.html#keysAbsResizeWindow" class="link">Source</a></p><div class="doc"><p><code>keysAbsResizeWindow (dx, dy) (ax, ay)</code> changes the width by <code>dx</code>
   and the height by <code>dy</code>, leaving the screen absolute point <code>(ax,
   ay)</code> fixed.
</p><p>For example:
</p><pre> keysAbsResizeWindow (10, 10) (0, 0)   -- enlarge the window; if it is not in the top-left corner it will also be moved down and to the right.
</pre></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.9.2</p></div></body></html>