mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-27 06:32:23 +00:00
6 lines
No EOL
16 KiB
Text
6 lines
No EOL
16 KiB
Text
<!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.ResizableTile</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><link rel="stylesheet" type="text/css" href="quick-jump.css" /><script src="haddock-bundle.min.js" async="async" type="text/javascript"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/XMonad.Layout.ResizableTile.html">Source</a></li><li><a href="/package/xmonad-contrib-0.16">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">xmonad-contrib-0.16: Third party extensions for xmonad</p></div><div id="content"><div id="module-header"><table class="info"><tr><th valign="top">Copyright</th><td>(c) MATSUYAMA Tomohiro <t.matsuyama.pub@gmail.com></td></tr><tr><th>License</th><td>BSD-style (see LICENSE)</td></tr><tr><th>Maintainer</th><td>MATSUYAMA Tomohiro <t.matsuyama.pub@gmail.com></td></tr><tr><th>Stability</th><td>unstable</td></tr><tr><th>Portability</th><td>unportable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">XMonad.Layout.ResizableTile</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>More useful tiled layout that allows you to change a width/height of window.</p></div></div><div id="synopsis"><details id="syn"><summary>Synopsis</summary><ul class="details-toggle" data-details-id="syn"><li class="src short"><span class="keyword">data</span> <a href="#t:ResizableTall">ResizableTall</a> a = <a href="#v:ResizableTall">ResizableTall</a> {<ul class="subs"><li><a href="#v:_nmaster">_nmaster</a> :: <a href="XMonad-Config-Prime.html#t:Int" title="XMonad.Config.Prime">Int</a></li><li><a href="#v:_delta">_delta</a> :: <a href="XMonad-Config-Prime.html#t:Rational" title="XMonad.Config.Prime">Rational</a></li><li><a href="#v:_frac">_frac</a> :: <a href="XMonad-Config-Prime.html#t:Rational" title="XMonad.Config.Prime">Rational</a></li><li><a href="#v:_slaves">_slaves</a> :: [<a href="XMonad-Config-Prime.html#t:Rational" title="XMonad.Config.Prime">Rational</a>]</li></ul>}</li><li class="src short"><span class="keyword">data</span> <a href="#t:MirrorResize">MirrorResize</a><ul class="subs"><li>= <a href="#v:MirrorShrink">MirrorShrink</a></li><li>| <a href="#v:MirrorExpand">MirrorExpand</a></li></ul></li></ul></details></div><div id="interface"><a href="#g:1" id="g:1"><h1>Usage</h1></a><div class="doc"><p>You can use this module with the following in your <code>~/.xmonad/xmonad.hs</code>:</p><pre>import XMonad.Layout.ResizableTile</pre><p>Then edit your <code>layoutHook</code> by adding the ResizableTile layout:</p><pre>myLayout = ResizableTall 1 (3/100) (1/2) [] ||| etc..
|
|
main = xmonad def { layoutHook = myLayout }</pre><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>You may also want to add the following key bindings:</p><pre>, ((modm, xK_a), sendMessage MirrorShrink)
|
|
, ((modm, xK_z), sendMessage MirrorExpand)</pre><p>For detailed instruction on editing the key binding see:</p><p><a href="XMonad-Doc-Extending.html#Editing_key_bindings">XMonad.Doc.Extending</a>.</p></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:ResizableTall" class="def">ResizableTall</a> a <a href="src/XMonad.Layout.ResizableTile.html#ResizableTall" class="link">Source</a> <a href="#t:ResizableTall" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:ResizableTall" class="def">ResizableTall</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:_nmaster" class="def">_nmaster</a> :: <a href="XMonad-Config-Prime.html#t:Int" title="XMonad.Config.Prime">Int</a></dfn><div class="doc"><p>number of master windows</p></div></li><li><dfn class="src"><a id="v:_delta" class="def">_delta</a> :: <a href="XMonad-Config-Prime.html#t:Rational" title="XMonad.Config.Prime">Rational</a></dfn><div class="doc"><p>change when resizing by <code><a href="XMonad-Config-Prime.html#v:Shrink" title="XMonad.Config.Prime">Shrink</a></code>, <code><a href="XMonad-Config-Prime.html#v:Expand" title="XMonad.Config.Prime">Expand</a></code>,
|
|
<code><a href="XMonad-Layout-ResizableTile.html#v:MirrorShrink" title="XMonad.Layout.ResizableTile">MirrorShrink</a></code>, <code><a href="XMonad-Layout-ResizableTile.html#v:MirrorExpand" title="XMonad.Layout.ResizableTile">MirrorExpand</a></code></p></div></li><li><dfn class="src"><a id="v:_frac" class="def">_frac</a> :: <a href="XMonad-Config-Prime.html#t:Rational" title="XMonad.Config.Prime">Rational</a></dfn><div class="doc"><p>width of master</p></div></li><li><dfn class="src"><a id="v:_slaves" class="def">_slaves</a> :: [<a href="XMonad-Config-Prime.html#t:Rational" title="XMonad.Config.Prime">Rational</a>]</dfn><div class="doc"><p>fraction to multiply the window
|
|
height that would be given when divided equally.</p><p>slave windows are assigned their modified
|
|
heights in order, from top to bottom</p><p>unspecified values are replaced by 1</p></div></li></ul></div></td></tr></table></div><div class="subs instances"><details id="i:ResizableTall" open="open"><summary>Instances</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:ResizableTall:LayoutClass:1"></span> <a href="XMonad-Config-Prime.html#t:LayoutClass" title="XMonad.Config.Prime">LayoutClass</a> <a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a</span> <a href="src/XMonad.Layout.ResizableTile.html#line-69" class="link">Source</a> <a href="#t:ResizableTall" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:ResizableTall:LayoutClass:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="XMonad-Layout-ResizableTile.html">XMonad.Layout.ResizableTile</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:runLayout">runLayout</a> :: <a href="/package/xmonad-0.15/docs/XMonad-StackSet.html#t:Workspace" title="XMonad.StackSet">Workspace</a> <a href="XMonad-Config-Prime.html#t:WorkspaceId" title="XMonad.Config.Prime">WorkspaceId</a> (<a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a) a -> <a href="XMonad-Config-Prime.html#t:Rectangle" title="XMonad.Config.Prime">Rectangle</a> -> <a href="XMonad-Config-Prime.html#t:X" title="XMonad.Config.Prime">X</a> ([(a, <a href="XMonad-Config-Prime.html#t:Rectangle" title="XMonad.Config.Prime">Rectangle</a>)], <a href="XMonad-Config-Prime.html#t:Maybe" title="XMonad.Config.Prime">Maybe</a> (<a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a)) <a href="#v:runLayout" class="selflink">#</a></p><p class="src"><a href="#v:doLayout">doLayout</a> :: <a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a -> <a href="XMonad-Config-Prime.html#t:Rectangle" title="XMonad.Config.Prime">Rectangle</a> -> <a href="/package/xmonad-0.15/docs/XMonad-StackSet.html#t:Stack" title="XMonad.StackSet">Stack</a> a -> <a href="XMonad-Config-Prime.html#t:X" title="XMonad.Config.Prime">X</a> ([(a, <a href="XMonad-Config-Prime.html#t:Rectangle" title="XMonad.Config.Prime">Rectangle</a>)], <a href="XMonad-Config-Prime.html#t:Maybe" title="XMonad.Config.Prime">Maybe</a> (<a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a)) <a href="#v:doLayout" class="selflink">#</a></p><p class="src"><a href="#v:pureLayout">pureLayout</a> :: <a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a -> <a href="XMonad-Config-Prime.html#t:Rectangle" title="XMonad.Config.Prime">Rectangle</a> -> <a href="/package/xmonad-0.15/docs/XMonad-StackSet.html#t:Stack" title="XMonad.StackSet">Stack</a> a -> [(a, <a href="XMonad-Config-Prime.html#t:Rectangle" title="XMonad.Config.Prime">Rectangle</a>)] <a href="#v:pureLayout" class="selflink">#</a></p><p class="src"><a href="#v:emptyLayout">emptyLayout</a> :: <a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a -> <a href="XMonad-Config-Prime.html#t:Rectangle" title="XMonad.Config.Prime">Rectangle</a> -> <a href="XMonad-Config-Prime.html#t:X" title="XMonad.Config.Prime">X</a> ([(a, <a href="XMonad-Config-Prime.html#t:Rectangle" title="XMonad.Config.Prime">Rectangle</a>)], <a href="XMonad-Config-Prime.html#t:Maybe" title="XMonad.Config.Prime">Maybe</a> (<a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a)) <a href="#v:emptyLayout" class="selflink">#</a></p><p class="src"><a href="#v:handleMessage">handleMessage</a> :: <a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a -> <a href="XMonad-Config-Prime.html#t:SomeMessage" title="XMonad.Config.Prime">SomeMessage</a> -> <a href="XMonad-Config-Prime.html#t:X" title="XMonad.Config.Prime">X</a> (<a href="XMonad-Config-Prime.html#t:Maybe" title="XMonad.Config.Prime">Maybe</a> (<a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a)) <a href="#v:handleMessage" class="selflink">#</a></p><p class="src"><a href="#v:pureMessage">pureMessage</a> :: <a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a -> <a href="XMonad-Config-Prime.html#t:SomeMessage" title="XMonad.Config.Prime">SomeMessage</a> -> <a href="XMonad-Config-Prime.html#t:Maybe" title="XMonad.Config.Prime">Maybe</a> (<a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a) <a href="#v:pureMessage" class="selflink">#</a></p><p class="src"><a href="#v:description">description</a> :: <a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a -> <a href="XMonad-Config-Prime.html#t:String" title="XMonad.Config.Prime">String</a> <a href="#v:description" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:ResizableTall:Read:2"></span> <a href="XMonad-Config-Prime.html#t:Read" title="XMonad.Config.Prime">Read</a> (<a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a)</span> <a href="src/XMonad.Layout.ResizableTile.html#line-67" class="link">Source</a> <a href="#t:ResizableTall" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:ResizableTall:Read:2"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="XMonad-Layout-ResizableTile.html">XMonad.Layout.ResizableTile</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:readsPrec">readsPrec</a> :: <a href="XMonad-Config-Prime.html#t:Int" title="XMonad.Config.Prime">Int</a> -> <a href="XMonad-Config-Prime.html#t:ReadS" title="XMonad.Config.Prime">ReadS</a> (<a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a) <a href="#v:readsPrec" class="selflink">#</a></p><p class="src"><a href="#v:readList">readList</a> :: <a href="XMonad-Config-Prime.html#t:ReadS" title="XMonad.Config.Prime">ReadS</a> [<a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a] <a href="#v:readList" class="selflink">#</a></p><p class="src"><a href="#v:readPrec">readPrec</a> :: <a href="/package/base-4.12.0.0/docs/Text-ParserCombinators-ReadPrec.html#t:ReadPrec" title="Text.ParserCombinators.ReadPrec">ReadPrec</a> (<a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a) <a href="#v:readPrec" class="selflink">#</a></p><p class="src"><a href="#v:readListPrec">readListPrec</a> :: <a href="/package/base-4.12.0.0/docs/Text-ParserCombinators-ReadPrec.html#t:ReadPrec" title="Text.ParserCombinators.ReadPrec">ReadPrec</a> [<a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a] <a href="#v:readListPrec" class="selflink">#</a></p></div></details></td></tr><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:ResizableTall:Show:3"></span> <a href="XMonad-Config-Prime.html#t:Show" title="XMonad.Config.Prime">Show</a> (<a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a)</span> <a href="src/XMonad.Layout.ResizableTile.html#line-67" class="link">Source</a> <a href="#t:ResizableTall" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:ResizableTall:Show:3"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="XMonad-Layout-ResizableTile.html">XMonad.Layout.ResizableTile</a></p> <div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:showsPrec">showsPrec</a> :: <a href="XMonad-Config-Prime.html#t:Int" title="XMonad.Config.Prime">Int</a> -> <a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a -> <a href="XMonad-Config-Prime.html#t:ShowS" title="XMonad.Config.Prime">ShowS</a> <a href="#v:showsPrec" class="selflink">#</a></p><p class="src"><a href="#v:show">show</a> :: <a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a -> <a href="XMonad-Config-Prime.html#t:String" title="XMonad.Config.Prime">String</a> <a href="#v:show" class="selflink">#</a></p><p class="src"><a href="#v:showList">showList</a> :: [<a href="XMonad-Layout-ResizableTile.html#t:ResizableTall" title="XMonad.Layout.ResizableTile">ResizableTall</a> a] -> <a href="XMonad-Config-Prime.html#t:ShowS" title="XMonad.Config.Prime">ShowS</a> <a href="#v:showList" class="selflink">#</a></p></div></details></td></tr></table></details></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:MirrorResize" class="def">MirrorResize</a> <a href="src/XMonad.Layout.ResizableTile.html#MirrorResize" class="link">Source</a> <a href="#t:MirrorResize" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:MirrorShrink" class="def">MirrorShrink</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a id="v:MirrorExpand" class="def">MirrorExpand</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><details id="i:MirrorResize" open="open"><summary>Instances</summary><table><tr><td class="src clearfix"><span class="inst-left"><span class="instance details-toggle-control details-toggle" data-details-id="i:id:MirrorResize:Message:1"></span> <a href="XMonad-Config-Prime.html#t:Message" title="XMonad.Config.Prime">Message</a> <a href="XMonad-Layout-ResizableTile.html#t:MirrorResize" title="XMonad.Layout.ResizableTile">MirrorResize</a></span> <a href="src/XMonad.Layout.ResizableTile.html#line-53" class="link">Source</a> <a href="#t:MirrorResize" class="selflink">#</a></td><td class="doc empty"> </td></tr><tr><td colspan="2"><details id="i:id:MirrorResize:Message:1"><summary class="hide-when-js-enabled">Instance details</summary><p>Defined in <a href="XMonad-Layout-ResizableTile.html">XMonad.Layout.ResizableTile</a></p></details></td></tr></table></details></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.22.0</p></div></body></html> |