fix manpage generation

This commit is contained in:
Michiel Derhaeg 2018-07-05 22:00:45 +02:00 committed by Peter Simons
parent 013da018a1
commit 586ee75a9a
4 changed files with 160 additions and 331 deletions

View File

@ -1,4 +1,4 @@
.TH xmonad 1 "31 December 2012" xmonad-0.13 "xmonad manual".\" Automatically generated by Pandoc 1.19.2.1 .TH xmonad 1 "5 July 2018" xmonad-0.13 "xmonad manual".\" Automatically generated by Pandoc 2.2.1
.\" .\"
.TH "" "" "" "" "" .TH "" "" "" "" ""
.hy .hy
@ -66,183 +66,84 @@ and visible workspaces are swapped.
.PP .PP
xmonad has several flags which you may pass to the executable. xmonad has several flags which you may pass to the executable.
These flags are: These flags are:
.TP .PP
.B \-\-recompile \-\-recompile : Recompiles your configuration in
Recompiles your configuration in \f[I]~/.xmonad/xmonad.hs\f[] \f[I]~/.xmonad/xmonad.hs\f[]
.RS .PP
.RE \-\-restart : Causes the currently running \f[I]xmonad\f[] process to
.TP restart
.B \-\-restart .PP
Causes the currently running \f[I]xmonad\f[] process to restart \-\-replace : Replace the current window manager with xmonad
.RS .PP
.RE \-\-version : Display version of \f[I]xmonad\f[]
.TP .PP
.B \-\-replace \-\-verbose\-version : Display detailed version of \f[I]xmonad\f[]
Replace the current window manager with xmonad
.RS
.RE
.TP
.B \-\-version
Display version of \f[I]xmonad\f[]
.RS
.RE
.TP
.B \-\-verbose\-version
Display detailed version of \f[I]xmonad\f[]
.RS
.RE
.SS Default keyboard bindings .SS Default keyboard bindings
.TP .PP
.B mod\-shift\-return mod\-shift\-return : Launch terminal
Launch terminal .PP
.RS mod\-p : Launch dmenu
.RE .PP
.TP mod\-shift\-p : Launch gmrun
.B mod\-p .PP
Launch dmenu mod\-shift\-c : Close the focused window
.RS .PP
.RE mod\-space : Rotate through the available layout algorithms
.TP .PP
.B mod\-shift\-p mod\-shift\-space : Reset the layouts on the current workspace to
Launch gmrun default
.RS .PP
.RE mod\-n : Resize viewed windows to the correct size
.TP .PP
.B mod\-shift\-c mod\-tab : Move focus to the next window
Close the focused window .PP
.RS mod\-shift\-tab : Move focus to the previous window
.RE .PP
.TP mod\-j : Move focus to the next window
.B mod\-space .PP
Rotate through the available layout algorithms mod\-k : Move focus to the previous window
.RS .PP
.RE mod\-m : Move focus to the master window
.TP .PP
.B mod\-shift\-space mod\-return : Swap the focused window and the master window
Reset the layouts on the current workspace to default .PP
.RS mod\-shift\-j : Swap the focused window with the next window
.RE .PP
.TP mod\-shift\-k : Swap the focused window with the previous window
.B mod\-n .PP
Resize viewed windows to the correct size mod\-h : Shrink the master area
.RS .PP
.RE mod\-l : Expand the master area
.TP .PP
.B mod\-tab mod\-t : Push window back into tiling
Move focus to the next window .PP
.RS mod\-comma : Increment the number of windows in the master area
.RE .PP
.TP mod\-period : Deincrement the number of windows in the master area
.B mod\-shift\-tab .PP
Move focus to the previous window mod\-shift\-q : Quit xmonad
.RS .PP
.RE mod\-q : Restart xmonad
.TP .PP
.B mod\-j mod\-shift\-slash : Run xmessage with a summary of the default
Move focus to the next window keybindings (useful for beginners)
.RS .PP
.RE mod\-question : Run xmessage with a summary of the default keybindings
.TP (useful for beginners)
.B mod\-k .PP
Move focus to the previous window mod\-[1..9] : Switch to workspace N
.RS .PP
.RE mod\-shift\-[1..9] : Move client to workspace N
.TP .PP
.B mod\-m mod\-{w,e,r} : Switch to physical/Xinerama screens 1, 2, or 3
Move focus to the master window .PP
.RS mod\-shift\-{w,e,r} : Move client to screen 1, 2, or 3
.RE .PP
.TP mod\-button1 : Set the window to floating mode and move by dragging
.B mod\-return .PP
Swap the focused window and the master window mod\-button2 : Raise the window to the top of the stack
.RS .PP
.RE mod\-button3 : Set the window to floating mode and resize by dragging
.TP
.B mod\-shift\-j
Swap the focused window with the next window
.RS
.RE
.TP
.B mod\-shift\-k
Swap the focused window with the previous window
.RS
.RE
.TP
.B mod\-h
Shrink the master area
.RS
.RE
.TP
.B mod\-l
Expand the master area
.RS
.RE
.TP
.B mod\-t
Push window back into tiling
.RS
.RE
.TP
.B mod\-comma
Increment the number of windows in the master area
.RS
.RE
.TP
.B mod\-period
Deincrement the number of windows in the master area
.RS
.RE
.TP
.B mod\-shift\-q
Quit xmonad
.RS
.RE
.TP
.B mod\-q
Restart xmonad
.RS
.RE
.TP
.B mod\-shift\-slash
Run xmessage with a summary of the default keybindings (useful for
beginners)
.RS
.RE
.TP
.B mod\-[1..9]
Switch to workspace N
.RS
.RE
.TP
.B mod\-shift\-[1..9]
Move client to workspace N
.RS
.RE
.TP
.B mod\-{w,e,r}
Switch to physical/Xinerama screens 1, 2, or 3
.RS
.RE
.TP
.B mod\-shift\-{w,e,r}
Move client to screen 1, 2, or 3
.RS
.RE
.TP
.B mod\-button1
Set the window to floating mode and move by dragging
.RS
.RE
.TP
.B mod\-button2
Raise the window to the top of the stack
.RS
.RE
.TP
.B mod\-button3
Set the window to floating mode and resize by dragging
.RS
.RE
.SH Examples .SH Examples
.PP .PP
To use xmonad as your window manager add to your \f[I]~/.xinitrc\f[] To use xmonad as your window manager add to your \f[I]~/.xinitrc\f[]
@ -258,25 +159,19 @@ mod\-q.
.PP .PP
You can find many extensions to the core feature set in the xmonad\- You can find many extensions to the core feature set in the xmonad\-
contrib package, available through your package manager or from contrib package, available through your package manager or from
xmonad.org (http://xmonad.org). [xmonad.org].
.SS Modular Configuration .SS Modular Configuration
.PP .PP
As of \f[I]xmonad\-0.9\f[], any additional Haskell modules may be placed As of \f[I]xmonad\-0.9\f[], any additional Haskell modules may be placed
in \f[I]~/.xmonad/lib/\f[] are available in GHC\[aq]s searchpath. in \f[I]~/.xmonad/lib/\f[] are available in GHC\[aq]s searchpath.
Hierarchical modules are supported: for example, the file Hierarchical modules are supported: for example, the file
\f[I]~/.xmonad/lib/XMonad/Stack/MyAdditions.hs\f[] could contain: \f[I]~/.xmonad/lib/XMonad/Stack/MyAdditions.hs\f[] could contain:
.IP .PP
.nf \f[C]haskell\ module\ XMonad.Stack.MyAdditions\ (function1)\ where\ \ \ function1\ =\ error\ "function1:\ Not\ implemented\ yet!"\f[]
\f[C]
module\ XMonad.Stack.MyAdditions\ (function1)\ where
\ \ function1\ =\ error\ "function1:\ Not\ implemented\ yet!"
\f[]
.fi
.PP .PP
Your xmonad.hs may then import XMonad.Stack.MyAdditions as if that Your xmonad.hs may then import XMonad.Stack.MyAdditions as if that
module was contained within xmonad or xmonad\-contrib. module was contained within xmonad or xmonad\-contrib.
.SH Bugs .SH Bugs
.PP .PP
Probably. Probably.
If you find any, please report them to the If you find any, please report them to the [bugtracker]
bugtracker (https://github.com/xmonad/xmonad/issues)

View File

@ -1,165 +1,99 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta charset="utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" /> <meta name="generator" content="pandoc" />
<title></title> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<style type="text/css">code{white-space: pre;}</style> <title>Untitled</title>
<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
</style>
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
</head> </head>
<body> <body>
<h1>xmonad-0.13</h1><p>Section: xmonad manual (1)<br/>Updated: 31 December 2012</p><hr/> <h1>xmonad-0.13</h1><p>Section: xmonad manual (1)<br/>Updated: 5 July 2018</p><hr/>
<div id="TOC"> <nav id="TOC">
<ul> <ul>
<li><a href="#name">Name</a></li> <li><a>Name</a></li>
<li><a href="#description">Description</a></li> <li><a>Description</a></li>
<li><a href="#usage">Usage</a><ul> <li><a>Usage</a><ul>
<li><a href="#flags">Flags</a></li> <li><a>Flags</a></li>
<li><a href="#default-keyboard-bindings">Default keyboard bindings</a></li> <li><a>Default keyboard bindings</a></li>
</ul></li> </ul></li>
<li><a href="#examples">Examples</a></li> <li><a>Examples</a></li>
<li><a href="#customization">Customization</a><ul> <li><a>Customization</a><ul>
<li><a href="#modular-configuration">Modular Configuration</a></li> <li><a>Modular Configuration</a></li>
</ul></li> </ul></li>
<li><a href="#bugs">Bugs</a></li> <li><a>Bugs</a></li>
</ul> </ul>
</div> </nav>
<h1 id="name">Name</h1> <h1>Name</h1>
<p>xmonad - a tiling window manager</p> <p>xmonad - a tiling window manager</p>
<h1 id="description">Description</h1> <h1>Description</h1>
<p><em>xmonad</em> is a minimalist tiling window manager for X, written in Haskell. Windows are managed using automatic layout algorithms, which can be dynamically reconfigured. At any time windows are arranged so as to maximize the use of screen real estate. All features of the window manager are accessible purely from the keyboard: a mouse is entirely optional. <em>xmonad</em> is configured in Haskell, and custom layout algorithms may be implemented by the user in config files. A principle of <em>xmonad</em> is predictability: the user should know in advance precisely the window arrangement that will result from any action.</p> <p><em>xmonad</em> is a minimalist tiling window manager for X, written in Haskell. Windows are managed using automatic layout algorithms, which can be dynamically reconfigured. At any time windows are arranged so as to maximize the use of screen real estate. All features of the window manager are accessible purely from the keyboard: a mouse is entirely optional. <em>xmonad</em> is configured in Haskell, and custom layout algorithms may be implemented by the user in config files. A principle of <em>xmonad</em> is predictability: the user should know in advance precisely the window arrangement that will result from any action.</p>
<p>By default, <em>xmonad</em> provides three layout algorithms: tall, wide and fullscreen. In tall or wide mode, windows are tiled and arranged to prevent overlap and maximize screen use. Sets of windows are grouped together on virtual screens, and each screen retains its own layout, which may be reconfigured dynamically. Multiple physical monitors are supported via Xinerama, allowing simultaneous display of a number of screens.</p> <p>By default, <em>xmonad</em> provides three layout algorithms: tall, wide and fullscreen. In tall or wide mode, windows are tiled and arranged to prevent overlap and maximize screen use. Sets of windows are grouped together on virtual screens, and each screen retains its own layout, which may be reconfigured dynamically. Multiple physical monitors are supported via Xinerama, allowing simultaneous display of a number of screens.</p>
<p>By utilizing the expressivity of a modern functional language with a rich static type system, <em>xmonad</em> provides a complete, featureful window manager in less than 1200 lines of code, with an emphasis on correctness and robustness. Internal properties of the window manager are checked using a combination of static guarantees provided by the type system, and type-based automated testing. A benefit of this is that the code is simple to understand, and easy to modify.</p> <p>By utilizing the expressivity of a modern functional language with a rich static type system, <em>xmonad</em> provides a complete, featureful window manager in less than 1200 lines of code, with an emphasis on correctness and robustness. Internal properties of the window manager are checked using a combination of static guarantees provided by the type system, and type-based automated testing. A benefit of this is that the code is simple to understand, and easy to modify.</p>
<h1 id="usage">Usage</h1> <h1>Usage</h1>
<p><em>xmonad</em> places each window into a &quot;workspace&quot;. Each workspace can have any number of windows, which you can cycle though with mod-j and mod-k. Windows are either displayed full screen, tiled horizontally, or tiled vertically. You can toggle the layout mode with mod-space, which will cycle through the available modes.</p> <p><em>xmonad</em> places each window into a &quot;workspace&quot;. Each workspace can have any number of windows, which you can cycle though with mod-j and mod-k. Windows are either displayed full screen, tiled horizontally, or tiled vertically. You can toggle the layout mode with mod-space, which will cycle through the available modes.</p>
<p>You can switch to workspace N with mod-N. For example, to switch to workspace 5, you would press mod-5. Similarly, you can move the current window to another workspace with mod-shift-N.</p> <p>You can switch to workspace N with mod-N. For example, to switch to workspace 5, you would press mod-5. Similarly, you can move the current window to another workspace with mod-shift-N.</p>
<p>When running with multiple monitors (Xinerama), each screen has exactly 1 workspace visible. mod-{w,e,r} switch the focus between screens, while shift-mod-{w,e,r} move the current window to that screen. When <em>xmonad</em> starts, workspace 1 is on screen 1, workspace 2 is on screen 2, etc. When switching workspaces to one that is already visible, the current and visible workspaces are swapped.</p> <p>When running with multiple monitors (Xinerama), each screen has exactly 1 workspace visible. mod-{w,e,r} switch the focus between screens, while shift-mod-{w,e,r} move the current window to that screen. When <em>xmonad</em> starts, workspace 1 is on screen 1, workspace 2 is on screen 2, etc. When switching workspaces to one that is already visible, the current and visible workspaces are swapped.</p>
<h2 id="flags">Flags</h2> <h2>Flags</h2>
<p>xmonad has several flags which you may pass to the executable. These flags are:</p> <p>xmonad has several flags which you may pass to the executable. These flags are:</p>
<dl> <p>--recompile : Recompiles your configuration in <em>~/.xmonad/xmonad.hs</em></p>
<dt>--recompile</dt> <p>--restart : Causes the currently running <em>xmonad</em> process to restart</p>
<dd>Recompiles your configuration in <em>~/.xmonad/xmonad.hs</em> <p>--replace : Replace the current window manager with xmonad</p>
</dd> <p>--version : Display version of <em>xmonad</em></p>
<dt>--restart</dt> <p>--verbose-version : Display detailed version of <em>xmonad</em></p>
<dd>Causes the currently running <em>xmonad</em> process to restart <h2>Default keyboard bindings</h2>
</dd> <p>mod-shift-return : Launch terminal</p>
<dt>--replace</dt> <p>mod-p : Launch dmenu</p>
<dd>Replace the current window manager with xmonad <p>mod-shift-p : Launch gmrun</p>
</dd> <p>mod-shift-c : Close the focused window</p>
<dt>--version</dt> <p>mod-space : Rotate through the available layout algorithms</p>
<dd>Display version of <em>xmonad</em> <p>mod-shift-space : Reset the layouts on the current workspace to default</p>
</dd> <p>mod-n : Resize viewed windows to the correct size</p>
<dt>--verbose-version</dt> <p>mod-tab : Move focus to the next window</p>
<dd>Display detailed version of <em>xmonad</em> <p>mod-shift-tab : Move focus to the previous window</p>
</dd> <p>mod-j : Move focus to the next window</p>
</dl> <p>mod-k : Move focus to the previous window</p>
<h2 id="default-keyboard-bindings">Default keyboard bindings</h2> <p>mod-m : Move focus to the master window</p>
<dl> <p>mod-return : Swap the focused window and the master window</p>
<dt>mod-shift-return</dt> <p>mod-shift-j : Swap the focused window with the next window</p>
<dd>Launch terminal <p>mod-shift-k : Swap the focused window with the previous window</p>
</dd> <p>mod-h : Shrink the master area</p>
<dt>mod-p</dt> <p>mod-l : Expand the master area</p>
<dd>Launch dmenu <p>mod-t : Push window back into tiling</p>
</dd> <p>mod-comma : Increment the number of windows in the master area</p>
<dt>mod-shift-p</dt> <p>mod-period : Deincrement the number of windows in the master area</p>
<dd>Launch gmrun <p>mod-shift-q : Quit xmonad</p>
</dd> <p>mod-q : Restart xmonad</p>
<dt>mod-shift-c</dt> <p>mod-shift-slash : Run xmessage with a summary of the default keybindings (useful for beginners)</p>
<dd>Close the focused window <p>mod-question : Run xmessage with a summary of the default keybindings (useful for beginners)</p>
</dd> <p>mod-[1..9] : Switch to workspace N</p>
<dt>mod-space</dt> <p>mod-shift-[1..9] : Move client to workspace N</p>
<dd>Rotate through the available layout algorithms <p>mod-{w,e,r} : Switch to physical/Xinerama screens 1, 2, or 3</p>
</dd> <p>mod-shift-{w,e,r} : Move client to screen 1, 2, or 3</p>
<dt>mod-shift-space</dt> <p>mod-button1 : Set the window to floating mode and move by dragging</p>
<dd>Reset the layouts on the current workspace to default <p>mod-button2 : Raise the window to the top of the stack</p>
</dd> <p>mod-button3 : Set the window to floating mode and resize by dragging</p>
<dt>mod-n</dt> <h1>Examples</h1>
<dd>Resize viewed windows to the correct size
</dd>
<dt>mod-tab</dt>
<dd>Move focus to the next window
</dd>
<dt>mod-shift-tab</dt>
<dd>Move focus to the previous window
</dd>
<dt>mod-j</dt>
<dd>Move focus to the next window
</dd>
<dt>mod-k</dt>
<dd>Move focus to the previous window
</dd>
<dt>mod-m</dt>
<dd>Move focus to the master window
</dd>
<dt>mod-return</dt>
<dd>Swap the focused window and the master window
</dd>
<dt>mod-shift-j</dt>
<dd>Swap the focused window with the next window
</dd>
<dt>mod-shift-k</dt>
<dd>Swap the focused window with the previous window
</dd>
<dt>mod-h</dt>
<dd>Shrink the master area
</dd>
<dt>mod-l</dt>
<dd>Expand the master area
</dd>
<dt>mod-t</dt>
<dd>Push window back into tiling
</dd>
<dt>mod-comma</dt>
<dd>Increment the number of windows in the master area
</dd>
<dt>mod-period</dt>
<dd>Deincrement the number of windows in the master area
</dd>
<dt>mod-shift-q</dt>
<dd>Quit xmonad
</dd>
<dt>mod-q</dt>
<dd>Restart xmonad
</dd>
<dt>mod-shift-slash</dt>
<dd>Run xmessage with a summary of the default keybindings (useful for beginners)
</dd>
<dt>mod-[1..9]</dt>
<dd>Switch to workspace N
</dd>
<dt>mod-shift-[1..9]</dt>
<dd>Move client to workspace N
</dd>
<dt>mod-{w,e,r}</dt>
<dd>Switch to physical/Xinerama screens 1, 2, or 3
</dd>
<dt>mod-shift-{w,e,r}</dt>
<dd>Move client to screen 1, 2, or 3
</dd>
<dt>mod-button1</dt>
<dd>Set the window to floating mode and move by dragging
</dd>
<dt>mod-button2</dt>
<dd>Raise the window to the top of the stack
</dd>
<dt>mod-button3</dt>
<dd>Set the window to floating mode and resize by dragging
</dd>
</dl>
<h1 id="examples">Examples</h1>
<p>To use xmonad as your window manager add to your <em>~/.xinitrc</em> file:</p> <p>To use xmonad as your window manager add to your <em>~/.xinitrc</em> file:</p>
<blockquote> <blockquote>
<p>exec xmonad</p> <p>exec xmonad</p>
</blockquote> </blockquote>
<h1 id="customization">Customization</h1> <h1>Customization</h1>
<p>xmonad is customized in ~/.xmonad/xmonad.hs, and then restarted with mod-q.</p> <p>xmonad is customized in ~/.xmonad/xmonad.hs, and then restarted with mod-q.</p>
<p>You can find many extensions to the core feature set in the xmonad- contrib package, available through your package manager or from <a href="http://xmonad.org">xmonad.org</a>.</p> <p>You can find many extensions to the core feature set in the xmonad- contrib package, available through your package manager or from [xmonad.org].</p>
<h2 id="modular-configuration">Modular Configuration</h2> <h2>Modular Configuration</h2>
<p>As of <em>xmonad-0.9</em>, any additional Haskell modules may be placed in <em>~/.xmonad/lib/</em> are available in GHC's searchpath. Hierarchical modules are supported: for example, the file <em>~/.xmonad/lib/XMonad/Stack/MyAdditions.hs</em> could contain:</p> <p>As of <em>xmonad-0.9</em>, any additional Haskell modules may be placed in <em>~/.xmonad/lib/</em> are available in GHC's searchpath. Hierarchical modules are supported: for example, the file <em>~/.xmonad/lib/XMonad/Stack/MyAdditions.hs</em> could contain:</p>
<pre class="haskell"><code>module XMonad.Stack.MyAdditions (function1) where <p><code>haskell module XMonad.Stack.MyAdditions (function1) where function1 = error &quot;function1: Not implemented yet!&quot;</code></p>
function1 = error &quot;function1: Not implemented yet!&quot;</code></pre>
<p>Your xmonad.hs may then import XMonad.Stack.MyAdditions as if that module was contained within xmonad or xmonad-contrib.</p> <p>Your xmonad.hs may then import XMonad.Stack.MyAdditions as if that module was contained within xmonad or xmonad-contrib.</p>
<h1 id="bugs">Bugs</h1> <h1>Bugs</h1>
<p>Probably. If you find any, please report them to the <a href="https://github.com/xmonad/xmonad/issues">bugtracker</a></p> <p>Probably. If you find any, please report them to the [bugtracker]</p>
</body> </body>
</html> </html>

View File

@ -221,9 +221,9 @@ keys conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $
, ((modMask .|. shiftMask, xK_q ), io (exitWith ExitSuccess)) -- %! Quit xmonad , ((modMask .|. shiftMask, xK_q ), io (exitWith ExitSuccess)) -- %! Quit xmonad
, ((modMask , xK_q ), spawn "if type xmonad; then xmonad --recompile && xmonad --restart; else xmessage xmonad not in \\$PATH: \"$PATH\"; fi") -- %! Restart xmonad , ((modMask , xK_q ), spawn "if type xmonad; then xmonad --recompile && xmonad --restart; else xmessage xmonad not in \\$PATH: \"$PATH\"; fi") -- %! Restart xmonad
, ((modMask .|. shiftMask, xK_slash ), helpCommand) , ((modMask .|. shiftMask, xK_slash ), helpCommand) -- %! Run xmessage with a summary of the default keybindings (useful for beginners)
-- repeat the binding for non-American layout keyboards -- repeat the binding for non-American layout keyboards
, ((modMask , xK_question), helpCommand) , ((modMask , xK_question), helpCommand) -- %! Run xmessage with a summary of the default keybindings (useful for beginners)
] ]
++ ++
-- mod-[1..9] %! Switch to workspace N -- mod-[1..9] %! Switch to workspace N
@ -239,7 +239,7 @@ keys conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $
, (f, m) <- [(W.view, 0), (W.shift, shiftMask)]] , (f, m) <- [(W.view, 0), (W.shift, shiftMask)]]
where where
helpCommand :: X () helpCommand :: X ()
helpCommand = spawn ("echo " ++ show help ++ " | xmessage -file -") -- %! Run xmessage with a summary of the default keybindings (useful for beginners) helpCommand = spawn ("echo " ++ show help ++ " | xmessage -file -")
-- | Mouse bindings: default actions bound to mouse events -- | Mouse bindings: default actions bound to mouse events
mouseBindings :: XConfig Layout -> M.Map (KeyMask, Button) (Window -> X ()) mouseBindings :: XConfig Layout -> M.Map (KeyMask, Button) (Window -> X ())

View File

@ -40,7 +40,7 @@ import Distribution.Text
import Text.Pandoc -- works with 2.1 import Text.Pandoc -- works with 2.1
releaseDate = "31 December 2012" releaseDate = "5 July 2018"
trim :: String -> String trim :: String -> String
trim = reverse . dropWhile isSpace . reverse . dropWhile isSpace trim = reverse . dropWhile isSpace . reverse . dropWhile isSpace