Permalink
Fetching contributors…
Cannot retrieve contributors at this time
1566 lines (1562 sloc) 78.4 KB
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<style>
table.head, table.foot { width: 100%; }
td.head-rtitle, td.foot-os { text-align: right; }
td.head-vol { text-align: center; }
table.foot td { width: 50%; }
table.head td { width: 33%; }
div.spacer { margin: 1em 0; }
</style>
<title>
SPECTRWM(1)</title>
</head>
<body>
<div class="mandoc">
<table class="head">
<tbody>
<tr>
<td class="head-ltitle">
SPECTRWM(1)</td>
<td class="head-vol">
General Commands Manual</td>
<td class="head-rtitle">
SPECTRWM(1)</td>
</tr>
</tbody>
</table>
<div class="section">
<h1 id="NAME">NAME</h1> <b class="name">spectrwm</b> &#8212; <span class="desc">window manager for X11</span></div>
<div class="section">
<h1 id="SYNOPSIS">SYNOPSIS</h1><table class="synopsis">
<col style="width: 8.00ex;"/>
<col/>
<tbody>
<tr>
<td>
<b class="name">spectrwm</b></td>
<td>
</td>
</tr>
</tbody>
</table>
</div>
<div class="section">
<h1 id="DESCRIPTION">DESCRIPTION</h1> <b class="name">spectrwm</b> is a minimalistic window manager that tries to stay out of the way so that valuable screen real estate can be used for much more important stuff. It has sane defaults and does not require one to learn a language to do any configuration. It was written by hackers for hackers and it strives to be small, compact and fast.<div class="spacer">
</div>
When <b class="name">spectrwm</b> starts up, it reads settings from its configuration file, <i class="file">spectrwm.conf</i>. See the <i class="link-sec"><a class="link-sec" href="#CONFIGURATION_FILES">CONFIGURATION FILES</a></i> section below.<div class="spacer">
</div>
The following notation is used throughout this page:<div class="spacer">
</div>
<dl style="margin-top: 0.00em;margin-bottom: 0.00em;margin-left: 6.00ex;" class="list list-tag">
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M</b></dt>
<dd class="list-tag" style="margin-left: 6.00ex;">
Meta</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">S</b></dt>
<dd class="list-tag" style="margin-left: 6.00ex;">
Shift</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
&#10216;<b class="flag">Name</b>&#10217;</dt>
<dd class="list-tag" style="margin-left: 6.00ex;">
Named key or button</dd>
</dl>
<div class="spacer">
</div>
<b class="name">spectrwm</b> is very simple in its use. Most of the actions are initiated via key or pointer bindings. See the <i class="link-sec"><a class="link-sec" href="#BINDINGS">BINDINGS</a></i> section below for defaults and customizations.</div>
<div class="section">
<h1 id="CONFIGURATION_FILES">CONFIGURATION FILES</h1> <b class="name">spectrwm</b> first tries to open the user specific file, <i class="file">~/.spectrwm.conf</i>. If that file is unavailable, it then tries to open the global configuration file <i class="file">/etc/spectrwm.conf</i>.<div class="spacer">
</div>
The format of the file is<div class="spacer">
</div>
<blockquote style="margin-top: 0.00em;margin-bottom: 0.00em;">
<div class="display">
<code class="lit"><i class="arg">keyword</i> <code class="lit">=</code> <i class="arg">setting</i></code></div>
</blockquote>
<div class="spacer">
</div>
For example:<div class="spacer">
</div>
<blockquote style="margin-top: 0.00em;margin-bottom: 0.00em;">
<div class="display">
<code class="lit">color_focus = red</code></div>
</blockquote>
<div class="spacer">
</div>
Enabling or disabling an option is done by using 1 or 0 respectively.<div class="spacer">
</div>
Colors need to be specified per the <a class="link-man">XQueryColor(3)</a> specification.<div class="spacer">
</div>
Comments begin with a #. When a literal &#8216;<code class="lit">#</code>&#8217; is desired in an option, then it must be escaped with a backslash, i.e. \#<div class="spacer">
</div>
The file supports the following keywords:<dl style="margin-top: 0.00em;margin-bottom: 0.00em;" class="list list-tag">
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">autorun</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Launch an application in a specified workspace at start-of-day. Defined in the format <code class="lit">ws</code>[<i class="arg">idx</i>]:<i class="arg">application</i>, e.g. ws[2]:xterm launches an <a class="link-man">xterm(1)</a> in workspace 2.<div class="spacer">
</div>
Note that workspace mapping is handled via <i class="file">libswmhack.so</i>. When <b class="cmd">autorun</b> spawns windows via a daemon, ensure the daemon is started with the correct <i class="file">LD_PRELOAD</i> in its environment.<div class="spacer">
</div>
For example, starting <a class="link-man">urxvtd(1)</a> via <a class="link-man">xinit(1)</a>:<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
LD_PRELOAD=/usr/lib/libswmhack.so.0.0 urxvtd -q -o -f</pre>
<div class="spacer">
</div>
Spawned programs automatically have <i class="file">LD_PRELOAD</i> set when executed.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">bar_action</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
External script that populates additional information in the status bar, such as battery life.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">bar_at_bottom</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Place the statusbar at the bottom of each region instead of the top.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">bar_border</b>[<i class="arg">x</i>]</dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Border color of the status bar(s) in screen <i class="arg">x</i>.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">bar_border_unfocus</b>[<i class="arg">x</i>]</dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Border color of the status bar(s) on unfocused region(s) in screen <i class="arg">x</i>.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">bar_border_width</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Set status bar border thickness in pixels. Disable border by setting to 0.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">bar_color</b>[<i class="arg">x</i>]</dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Background color of the status bar(s) in screen <i class="arg">x</i>.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">bar_enabled</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Set default <b class="cmd">bar_toggle</b> state; default is 1.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">bar_enabled_ws</b>[<i class="arg">x</i>]</dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Set default <b class="cmd">bar_toggle_ws</b> state on workspace <i class="arg">x</i>; default is 1.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">bar_font</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Font used in the status bar. Either Xft or X Logical Font Description (XLFD) may be used to specify fonts. Fallback fonts may be specified by separating each font with a comma. If all entries are in XLFD syntax, font set will be used. If at least one entry is Xft, Xft will be used. Note that if Xft is in use, only the first font that successfully loads will be used regardless of missing glyphs. The default is to use font set. Also note that <a class="link-man">dmenu(1)</a> does not support Xft fonts.<div class="spacer">
</div>
Xft examples:<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
bar_font = Terminus:style=Regular:pixelsize=14:antialias=true
bar_font = -*-profont-medium-*-*-*-11-*-*-*-*-*-*-*,Terminus:pixelsize=14,-*-clean-medium-*-*-*-12-*-*-*-*-*-*-*</pre>
<div class="spacer">
</div>
Font set examples:<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
bar_font = -*-terminus-medium-*-*-*-14-*-*-*-*-*-*-*
bar_font = -*-profont-medium-*-*-*-11-*-*-*-*-*-*-*,-*-terminus-medium-*-*-*-14-*-*-*-*-*-*-*,-*-clean-medium-*-*-*-12-*-*-*-*-*-*-*</pre>
<div class="spacer">
</div>
To list the available fonts in your system see <a class="link-man">fc-list(1)</a> or <a class="link-man">xlsfonts(1)</a> manpages. The <a class="link-man">xfontsel(1)</a> application can help with the XLFD setting.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">bar_font_color</b>[<i class="arg">x</i>]</dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Color of the font in status bar in screen <i class="arg">x</i>.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">bar_format</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Set the bar format string, overriding <b class="cmd">clock_format</b> and all of the <b class="cmd">enabled</b> options. The format is passed through <a class="link-man">strftime(3)</a> before being used. It may contain the following character sequences:<table style="margin-top: 0.00em;margin-bottom: 0.00em;margin-left: 6.00ex;" class="list list-col">
<col style="width: 18.00ex;"/>
<col style="min-width: 13.00ex;"/>
<tbody>
<tr class="list-col">
<td class="list-col" style="margin-top: 1.00em;">
<span class="symb">Character sequence</span></td>
<td class="list-col" style="margin-top: 1.00em;">
<span class="symb">Replaced with</span></td>
</tr>
<tr class="list-col">
<td class="list-col" style="margin-top: 1.00em;">
<code class="lit">+&lt;</code></td>
<td class="list-col" style="margin-top: 1.00em;">
Pad with a space</td>
</tr>
<tr class="list-col">
<td class="list-col" style="margin-top: 1.00em;">
<code class="lit">+A</code></td>
<td class="list-col" style="margin-top: 1.00em;">
Output of the external script</td>
</tr>
<tr class="list-col">
<td class="list-col" style="margin-top: 1.00em;">
<code class="lit">+C</code></td>
<td class="list-col" style="margin-top: 1.00em;">
Window class (from WM_CLASS)</td>
</tr>
<tr class="list-col">
<td class="list-col" style="margin-top: 1.00em;">
<code class="lit">+D</code></td>
<td class="list-col" style="margin-top: 1.00em;">
Workspace name</td>
</tr>
<tr class="list-col">
<td class="list-col" style="margin-top: 1.00em;">
<code class="lit">+F</code></td>
<td class="list-col" style="margin-top: 1.00em;">
Floating indicator</td>
</tr>
<tr class="list-col">
<td class="list-col" style="margin-top: 1.00em;">
<code class="lit">+I</code></td>
<td class="list-col" style="margin-top: 1.00em;">
Workspace index</td>
</tr>
<tr class="list-col">
<td class="list-col" style="margin-top: 1.00em;">
<code class="lit">+M</code></td>
<td class="list-col" style="margin-top: 1.00em;">
Number of iconic (minimized) windows in workspace</td>
</tr>
<tr class="list-col">
<td class="list-col" style="margin-top: 1.00em;">
<code class="lit">+N</code></td>
<td class="list-col" style="margin-top: 1.00em;">
Screen number</td>
</tr>
<tr class="list-col">
<td class="list-col" style="margin-top: 1.00em;">
<code class="lit">+P</code></td>
<td class="list-col" style="margin-top: 1.00em;">
Window class and instance separated by a colon</td>
</tr>
<tr class="list-col">
<td class="list-col" style="margin-top: 1.00em;">
<code class="lit">+S</code></td>
<td class="list-col" style="margin-top: 1.00em;">
Stacking algorithm</td>
</tr>
<tr class="list-col">
<td class="list-col" style="margin-top: 1.00em;">
<code class="lit">+T</code></td>
<td class="list-col" style="margin-top: 1.00em;">
Window instance (from WM_CLASS)</td>
</tr>
<tr class="list-col">
<td class="list-col" style="margin-top: 1.00em;">
<code class="lit">+U</code></td>
<td class="list-col" style="margin-top: 1.00em;">
Urgency hint</td>
</tr>
<tr class="list-col">
<td class="list-col" style="margin-top: 1.00em;">
<code class="lit">+V</code></td>
<td class="list-col" style="margin-top: 1.00em;">
Program version</td>
</tr>
<tr class="list-col">
<td class="list-col" style="margin-top: 1.00em;">
<code class="lit">+W</code></td>
<td class="list-col" style="margin-top: 1.00em;">
Window name (from _NET_WM_NAME/WM_NAME)</td>
</tr>
<tr class="list-col">
<td class="list-col" style="margin-top: 1.00em;">
<code class="lit">++</code></td>
<td class="list-col" style="margin-top: 1.00em;">
A literal &#8216;<code class="lit">+</code>&#8217;</td>
</tr>
</tbody>
</table>
<div class="spacer">
</div>
All character sequences may limit its output to a specific length, for example +64A. Any characters that don't match the specification are copied as-is.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">bar_justify</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Justify the status bar text. Possible values are <i class="arg">left</i>, <i class="arg">center</i>, and <i class="arg">right</i>.<div class="spacer">
</div>
Note that if the output is not left justified, it may not be properly aligned in some circumstances, due to the white-spaces in the default static format. See the <b class="cmd">bar_format</b> option for more details.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">bind</b>[<i class="arg">x</i>]</dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Bind key or button combo to action <i class="arg">x</i>. See the <i class="link-sec"><a class="link-sec" href="#BINDINGS">BINDINGS</a></i> section below.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">border_width</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Set window border thickness in pixels. Disable all borders by setting to 0.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">boundary_width</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Set region containment boundary width in pixels. This is how far a window must be dragged/resized (with the pointer) beyond the region edge before it is allowed outside the region. Disable the window containment effect by setting to 0.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">clock_enabled</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Enable or disable displaying the clock in the status bar. Disable by setting to 0 so a custom clock could be used in the <b class="cmd">bar_action</b> script.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">iconic_enabled</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Display the number of iconic (minimized) windows in the status bar. Enable by setting to 1.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">color_focus</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Border color of the currently focused window. Default is red.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">color_focus_maximized</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Border color of the currently focused, maximized window. Defaults to the value of <b class="cmd">color_focus</b>.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">color_unfocus</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Border color of unfocused windows, default is rgb:88/88/88.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">color_unfocus_maximized</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Border color of unfocused, maximized windows. Defaults to the value of <b class="cmd">color_unfocus</b>.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">dialog_ratio</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Some applications have dialogue windows that are too small to be useful. This ratio is the screen size to what they will be resized. For example, 0.6 is 60% of the physical screen size.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">disable_border</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Remove border when bar is disabled and there is only one window on the region.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">focus_close</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Window to put focus when the focused window is closed. Possible values are <i class="arg">first</i>, <i class="arg">next</i>, <i class="arg">previous</i> (default) and <i class="arg">last</i>. <i class="arg">next</i> and <i class="arg">previous</i> are relative to the window that is closed.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">focus_close_wrap</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Whether to allow the focus to jump to the last window when the first window is closed or vice versa. Disable by setting to 0.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">focus_default</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Window to put focus when no window has been focused. Possible values are <i class="arg">first</i> and <i class="arg">last</i> (default).</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">focus_mode</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Window focus behavior with respect to the pointer. Possible values:<div class="spacer">
</div>
<dl style="margin-top: 0.00em;margin-bottom: 0.00em;margin-left: 6.00ex;" class="list list-tag">
<dt class="list-tag" style="margin-top: 0.00em;">
<i class="arg">default</i></dt>
<dd class="list-tag" style="margin-left: 7.00ex;">
Set window focus on border crossings caused by cursor motion and window interaction.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<i class="arg">follow</i></dt>
<dd class="list-tag" style="margin-left: 7.00ex;">
Set window focus on all cursor border crossings, including workspace switches and changes to layout.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<i class="arg">manual</i></dt>
<dd class="list-tag" style="margin-left: 7.00ex;">
Set window focus on window interaction only.</dd>
</dl>
</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">maximize_hide_bar</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
When set to 1, <b class="cmd">maximize_toggle</b> will also hide/restore the bar visibility of the affected workspace. Defaults to 0.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">java_workaround</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Workaround a Java GUI rendering issue on non-reparenting window managers by impersonating the LG3D window manager, written by Sun. Default is 1.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">keyboard_mapping</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Clear all key bindings (not button bindings) and load new bindings from the specified file. This allows you to load pre-defined key bindings for your keyboard layout. See the <i class="link-sec"><a class="link-sec" href="#KEYBOARD_MAPPING_FILES">KEYBOARD MAPPING FILES</a></i> section below for a list of keyboard mapping files that have been provided for several keyboard layouts.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">layout</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Select layout to use at start-of-day. Defined in the format <code class="lit">ws</code>[<i class="arg">idx</i>]:<i class="arg">master_grow</i>:<i class="arg">master_add</i>:<i class="arg">stack_inc</i>:<i class="arg">always_raise</i>:<i class="arg">stack_mode</i>, e.g. ws[2]:-4:0:1:0:horizontal sets worskspace 2 to the horizontal stack mode, shrinks the master area by 4 ticks and adds one window to the stack, while maintaining default floating window behavior. Possible <i class="arg">stack_mode</i> values are <i class="arg">vertical</i>, <i class="arg">vertical_flip</i>, <i class="arg">horizontal</i>, <i class="arg">horizontal_flip</i> and <i class="arg">fullscreen</i>.<div class="spacer">
</div>
See <b class="cmd">master_grow</b>, <b class="cmd">master_shrink</b>, <b class="cmd">master_add</b>, <b class="cmd">master_del</b>, <b class="cmd">stack_inc</b>, <b class="cmd">stack_dec</b>, <b class="cmd">stack_balance</b>, and <b class="cmd">always_raise</b> for more information. Note that the stacking options are complicated and have side-effects. One should familiarize oneself with these commands before experimenting with the <b class="cmd">layout</b> option.<div class="spacer">
</div>
This setting is not retained at restart.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">modkey</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Change mod key. Mod1 is generally the ALT key and Mod4 is the windows key on a PC.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">name</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Set the name of a workspace at start-of-day. Defined in the format <code class="lit">ws</code>[<i class="arg">idx</i>]:<i class="arg">name</i>, e.g. ws[1]:Console sets the name of workspace 1 to &#8220;Console&#8221;.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">program</b>[<i class="arg">p</i>]</dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Define new action to spawn a program <i class="arg">p</i>. See the <i class="link-sec"><a class="link-sec" href="#PROGRAMS">PROGRAMS</a></i> section below.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">quirk</b>[<i class="arg">c</i>:<i class="arg">i</i>:<i class="arg">n</i>]</dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Add &quot;quirk&quot; for windows with class <i class="arg">c</i>, instance <i class="arg">i</i> and name <i class="arg">n</i>. See the <i class="link-sec"><a class="link-sec" href="#QUIRKS">QUIRKS</a></i> section below.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">region</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Allocates a custom region, removing any autodetected regions which occupy the same space on the screen. Defined in the format <code class="lit">screen</code>[<i class="arg">idx</i>]:<i class="arg">width</i>x<i class="arg">height</i>+<i class="arg">x</i>+<i class="arg">y</i>, e.g. screen[1]:800x1200+0+0.<div class="spacer">
</div>
To make a region span multiple monitors, create a region big enough to cover them all, e.g. screen[1]:2048x768+0+0 makes the region span two monitors with 1024x768 resolution sitting one next to the other.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">region_padding</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Pixel width of empty space within region borders. Disable by setting to 0.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">spawn_position</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Position in stack to place newly spawned windows. Possible values are <i class="arg">first</i>, <i class="arg">next</i>, <i class="arg">previous</i> and <i class="arg">last</i> (default). <i class="arg">next</i> and <i class="arg">previous</i> are relative to the focused window.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">stack_enabled</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Enable or disable displaying the current stacking algorithm in the status bar.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">term_width</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Set a preferred minimum width for the terminal. If this value is greater than 0, <b class="name">spectrwm</b> will attempt to adjust the font sizes in the terminal to keep the terminal width above this number as the window is resized. Only <a class="link-man">xterm(1)</a> is currently supported. The <a class="link-man">xterm(1)</a> binary must not be setuid or setgid, which it is by default on most systems. Users may need to set program[term] (see the <i class="link-sec"><a class="link-sec" href="#PROGRAMS">PROGRAMS</a></i> section) to use an alternate copy of the <a class="link-man">xterm(1)</a> binary without the setgid bit set.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">tile_gap</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Pixel width of empty space between tiled windows. Negative values cause overlap. Set this to the opposite of <b class="cmd">border_width</b> to collapse the border between tiles. Disable by setting to 0.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">urgent_collapse</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Minimizes the space consumed by the urgency hint indicator by removing the placeholders for non-urgent workspaces, the trailing space when there are urgent windows and the default leading space. Enable by setting to 1.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">urgent_enabled</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Enable or disable the urgency hint indicator in the status bar. Note that many terminal emulators require an explicit setting for the bell character to trigger urgency on the window. In <a class="link-man">xterm(1)</a>, for example, one needs to add the following line to <i class="file">.Xdefaults</i>:<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
xterm.bellIsUrgent: true</pre>
</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">verbose_layout</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Enable or disable displaying the current master window count and stack column/row count in the status bar. Enable by setting to 1. See <i class="arg">master_add</i>, <i class="arg">master_del</i>, <i class="arg">stack_inc</i> and <i class="arg">stack_dec</i> for more information.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">workspace_clamp</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Prevents workspaces from being swapped when attempting to switch to a workspace that is mapped to another region. Use <i class="arg">warp_focus</i> if you want to focus on the region containing the workspace and <i class="arg">warp_pointer</i> if you want to also send the pointer. Enable by setting to 1.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">window_class_enabled</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Enable or disable displaying the window class name (from WM_CLASS) in the status bar. Enable by setting to 1.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">window_instance_enabled</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Enable or disable displaying the window instance name (from WM_CLASS) in the status bar. Enable by setting to 1.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">window_name_enabled</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Enable or disable displaying the window display name (from _NET_WM_NAME/WM_NAME) in the status bar. Enable by setting to 1.<div class="spacer">
</div>
To prevent excessively large window names from pushing the remaining text off the bar, it's limited to 64 characters, by default. See the <b class="cmd">bar_format</b> option for more details.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">warp_focus</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Focus on the target window/workspace/region when clamped. For example, when attempting to switch to a workspace that is mapped on another region and <i class="arg">workspace_clamp</i> is enabled, focus on the region with the target workspace. Enable by setting to 1.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">warp_pointer</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Centers the pointer on the focused window when using bindings to change focus, switch workspaces, change regions, etc. Enable by setting to 1.</dd>
<dt class="list-tag" style="margin-top: 1.00em;">
<b class="cmd">workspace_limit</b></dt>
<dd class="list-tag" style="margin-left: 2.00em;">
Set the total number of workspaces available. Minimum is 1, maximum is 22, default is 10.</dd>
</dl>
</div>
<div class="section">
<h1 id="PROGRAMS">PROGRAMS</h1> <b class="name">spectrwm</b> allows you to define custom actions to launch programs of your choice and then bind them the same as with built-in actions. See the <i class="link-sec"><a class="link-sec" href="#BINDINGS">BINDINGS</a></i> section below.<div class="spacer">
</div>
Custom programs in the configuration file are specified as follows:<div class="spacer">
</div>
<blockquote style="margin-top: 0.00em;margin-bottom: 0.00em;">
<div class="display">
<code class="lit">program[<i class="arg">action</i>] = <i class="arg">progpath</i> [<span class="opt"><i class="arg">arg</i> [<span class="opt"><i class="arg">arg ...</i></span>]</span>]</code></div>
</blockquote>
<div class="spacer">
</div>
<i class="arg">action</i> is any identifier that does not conflict with a built-in action or keyword, <i class="arg">progpath</i> is the desired program, and <i class="arg">arg</i> is zero or more arguments to the program.<div class="spacer">
</div>
Remember that when using &#8216;<code class="lit">#</code>&#8217; in your program call, it must be escaped with a backslash, i.e. \#<div class="spacer">
</div>
The following argument variables will be substituted for values at the time the program is spawned:<div class="spacer">
</div>
<dl style="margin-top: 0.00em;margin-bottom: 0.00em;margin-left: 6.00ex;" class="list list-tag">
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">$bar_border</b></dt>
<dd class="list-tag" style="margin-left: 15.00ex;">
</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">$bar_color</b></dt>
<dd class="list-tag" style="margin-left: 15.00ex;">
</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">$bar_font</b></dt>
<dd class="list-tag" style="margin-left: 15.00ex;">
</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">$bar_font_color</b></dt>
<dd class="list-tag" style="margin-left: 15.00ex;">
</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">$color_focus</b></dt>
<dd class="list-tag" style="margin-left: 15.00ex;">
</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">$color_unfocus</b></dt>
<dd class="list-tag" style="margin-left: 15.00ex;">
</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">$dmenu_bottom</b></dt>
<dd class="list-tag" style="margin-left: 15.00ex;">
-b if <b class="cmd">bar_at_bottom</b> is enabled.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">$region_index</b></dt>
<dd class="list-tag" style="margin-left: 15.00ex;">
</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">$workspace_index</b></dt>
<dd class="list-tag" style="margin-left: 15.00ex;">
</dd>
</dl>
<div class="spacer">
</div>
Example:<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
program[ff] = /usr/local/bin/firefox http://spectrwm.org/
bind[ff] = MOD+Shift+b # Now M-S-b launches firefox</pre>
<div class="spacer">
</div>
To cancel the previous, unbind it:<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
bind[] = MOD+Shift+b</pre>
<div class="spacer">
</div>
Default programs:<dl style="margin-top: 0.00em;margin-bottom: 0.00em;margin-left: 6.00ex;" class="list list-tag">
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">lock</b></dt>
<dd class="list-tag" style="margin-left: 15.00ex;">
xlock</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">menu</b></dt>
<dd class="list-tag" style="margin-left: 15.00ex;">
dmenu_run $dmenu_bottom -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_border -sf $bar_color</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">term</b></dt>
<dd class="list-tag" style="margin-left: 15.00ex;">
xterm</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">initscr</b></dt>
<dd class="list-tag" style="margin-left: 15.00ex;">
initscreen.sh # optional</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">screenshot_all</b></dt>
<dd class="list-tag" style="margin-left: 15.00ex;">
screenshot.sh full # optional</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">screenshot_wind</b></dt>
<dd class="list-tag" style="margin-left: 15.00ex;">
screenshot.sh window # optional</dd>
</dl>
<div class="spacer">
</div>
Note that optional default programs will not be validated unless overridden. If a default program fails validation, you can resolve the exception by installing the program, modifying the program call or disabling the program by freeing the respective binding.<div class="spacer">
</div>
For example, to override <b class="cmd">lock</b>:<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
program[lock] = xscreensaver-command -lock</pre>
<div class="spacer">
</div>
To unbind <b class="cmd">lock</b> and prevent it from being validated:<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
bind[] = MOD+Shift+Delete</pre>
</div>
<div class="section">
<h1 id="BINDINGS">BINDINGS</h1> <b class="name">spectrwm</b> provides many functions (or actions) accessed via key or pointer bindings.<div class="spacer">
</div>
The default bindings are listed below:<div class="spacer">
</div>
<dl style="margin-top: 0.00em;margin-bottom: 0.00em;margin-left: 6.00ex;" class="list list-tag">
<dt class="list-tag" style="margin-top: 0.00em;">
&#10216;<b class="flag">Button1</b>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
focus</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-</b>&#10216;<b class="flag">Button1</b>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
move</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-</b>&#10216;<b class="flag">Button3</b>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
resize</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-</b>&#10216;<b class="flag">Button3</b>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
resize_centered</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-</b>&#10216;<b class="flag">Return</b>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
term</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-p</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
menu</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-q</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
quit</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-q</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
restart</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-</b>&#10216;<b class="flag">Space</b>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
cycle_layout</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-\</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
flip_layout</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-</b>&#10216;<b class="flag">Space</b>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
stack_reset</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
&#10216;<i class="arg">unbound</i>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
stack_balance</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-h</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
master_shrink</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-l</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
master_grow</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-,</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
master_add</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-.</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
master_del</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-,</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
stack_inc</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-.</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
stack_dec</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-</b>&#10216;<b class="flag">Return</b>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
swap_main</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-j</b>, <b class="flag">M-</b>&#10216;<b class="flag">TAB</b>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
focus_next</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-k</b>, <b class="flag">M-S-</b>&#10216;<b class="flag">TAB</b>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
focus_prev</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-m</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
focus_main</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-u</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
focus_urgent</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-j</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
swap_next</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-k</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
swap_prev</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-b</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
bar_toggle</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-b</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
bar_toggle_ws</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-x</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
wind_del</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-x</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
wind_kill</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-</b>&#10216;<i class="arg">1-9,0,F1-F12</i>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
ws_&#10216;<i class="arg">1-22</i>&#10217;</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-</b>&#10216;<i class="arg">1-9,0,F1-F12</i>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
mvws_&#10216;<i class="arg">1-22</i>&#10217;</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-</b>&#10216;<i class="arg">Keypad 1-9</i>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
rg_&#10216;<i class="arg">1-9</i>&#10217;</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-</b>&#10216;<i class="arg">Keypad 1-9</i>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
mvrg_&#10216;<i class="arg">1-9</i>&#10217;</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
&#10216;<i class="arg">unbound</i>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
mvrg_next</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
&#10216;<i class="arg">unbound</i>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
mvrg_prev</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-</b>&#10216;<b class="flag">Right</b>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
ws_next</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-</b>&#10216;<b class="flag">Left</b>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
ws_prev</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-</b>&#10216;<b class="flag">Up</b>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
ws_next_all</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-</b>&#10216;<b class="flag">Down</b>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
ws_prev_all</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-a</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
ws_prior</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-</b>&#10216;<b class="flag">Down</b>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
ws_prev_move</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-</b>&#10216;<b class="flag">Up</b>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
ws_next_move</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-</b>&#10216;<b class="flag">Right</b>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
rg_next</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-</b>&#10216;<b class="flag">Left</b>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
rg_prev</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
&#10216;<i class="arg">unbound</i>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
rg_move_next</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
&#10216;<i class="arg">unbound</i>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
rg_move_prev</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-s</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
screenshot_all</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-s</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
screenshot_wind</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-v</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
version</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-t</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
float_toggle</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-</b>&#10216;<b class="flag">Delete</b>&#10217;</dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
lock</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-i</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
initscr</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-w</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
iconify</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-w</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
uniconify</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-e</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
maximize_toggle</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-e</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
fullscreen_toggle</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-r</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
raise</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-r</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
always_raise</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-v</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
button2</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M--</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
width_shrink</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-=</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
width_grow</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S--</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
height_shrink</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-=</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
height_grow</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-[</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
move_left</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-]</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
move_right</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-[</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
move_up</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-]</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
move_down</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-S-/</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
name_workspace</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-/</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
search_workspace</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">M-f</b></dt>
<dd class="list-tag" style="margin-left: 18.00ex;">
search_win</dd>
</dl>
<div class="spacer">
</div>
The action names and descriptions are listed below:<div class="spacer">
</div>
<dl style="margin-top: 0.00em;margin-bottom: 0.00em;margin-left: 6.00ex;" class="list list-tag">
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">focus</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Focus window/region under pointer.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">move</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Move window with pointer while binding is pressed.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">resize</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Resize window with pointer while binding is pressed.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">resize_centered</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Same as <b class="cmd">resize</b> but keep window centered.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">term</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Spawn a new terminal (see <i class="link-sec"><a class="link-sec" href="#PROGRAMS">PROGRAMS</a></i> above).</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">menu</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Menu (see <i class="link-sec"><a class="link-sec" href="#PROGRAMS">PROGRAMS</a></i> above).</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">quit</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Quit <b class="name">spectrwm</b>.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">restart</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Restart <b class="name">spectrwm</b>.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">cycle_layout</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Cycle layout.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">flip_layout</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Swap the master and stacking areas.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">stack_reset</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Reset layout.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">stack_balance</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Balance master/stacking area.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">master_shrink</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Shrink master area.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">master_grow</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Grow master area.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">master_add</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Add windows to master area.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">master_del</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Remove windows from master area.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">stack_inc</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Add columns/rows to stacking area.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">stack_dec</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Remove columns/rows from stacking area.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">swap_main</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Move current window to master area.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">focus_next</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Focus next window in workspace.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">focus_prev</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Focus previous window in workspace.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">focus_main</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Focus on main window in workspace.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">focus_urgent</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Focus on next window with the urgency hint flag set. The workspace is switched if needed.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">swap_next</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Swap with next window in workspace.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">swap_prev</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Swap with previous window in workspace.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">bar_toggle</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Toggle overall visibility of status bars.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">bar_toggle_ws</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Toggle status bar on current workspace.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">wind_del</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Delete current window in workspace.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">wind_kill</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Destroy current window in workspace.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">ws_</b><i class="arg">n</i></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Switch to workspace <i class="arg">n</i>, where <i class="arg">n</i> is 1 through <b class="cmd">workspace_limit</b>.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">mvws_</b><i class="arg">n</i></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Move current window to workspace <i class="arg">n</i>, where <i class="arg">n</i> is 1 through <b class="cmd">workspace_limit</b>.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">rg_</b><i class="arg">n</i></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Focus on region <i class="arg">n</i>, where <i class="arg">n</i> is 1 through 9.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">mvrg_</b><i class="arg">n</i></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Move current window to region <i class="arg">n</i>, where <i class="arg">n</i> is 1 through 9.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">mvrg_next</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Move current window to workspace in next region.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">mvrg_prev</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Move current window to workspace in previous region.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">ws_next</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Switch to next workspace with a window in it.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">ws_prev</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Switch to previous workspace with a window in it.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">ws_next_all</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Switch to next workspace.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">ws_prev_all</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Switch to previous workspace.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">ws_next_move</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Switch to next workspace with the current window.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">ws_prev_move</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Switch to previous workspace with the current window.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">ws_prior</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Switch to last visited workspace.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">rg_next</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Switch to next region.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">rg_prev</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Switch to previous region.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">rg_move_next</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Switch region to next screen.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">rg_move_prev</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Switch region to previous screen.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">screenshot_all</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Take screenshot of entire screen (if enabled) (see <i class="link-sec"><a class="link-sec" href="#PROGRAMS">PROGRAMS</a></i> above).</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">screenshot_wind</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Take screenshot of selected window (if enabled) (see <i class="link-sec"><a class="link-sec" href="#PROGRAMS">PROGRAMS</a></i> above).</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">version</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Toggle version in status bar.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">float_toggle</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Toggle focused window between tiled and floating.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">lock</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Lock screen (see <i class="link-sec"><a class="link-sec" href="#PROGRAMS">PROGRAMS</a></i> above).</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">initscr</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Reinitialize physical screens (see <i class="link-sec"><a class="link-sec" href="#PROGRAMS">PROGRAMS</a></i> above).</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">iconify</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Minimize (unmap) currently focused window.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">uniconify</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Restore (map) window returned by <a class="link-man">dmenu(1)</a> selection.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">maximize_toggle</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Toggle maximization of focused window.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">fullscreen_toggle</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Toggle fullscreen state of focused window.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">raise</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Raise the current window.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">always_raise</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
When set tiled windows are allowed to obscure floating windows.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">button2</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Fake a middle mouse button click (Button2).</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">width_shrink</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Shrink the width of a floating window.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">width_grow</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Grow the width of a floating window.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">height_shrink</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Shrink the height of a floating window.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">height_grow</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Grow the height of a floating window.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">move_left</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Move a floating window a step to the left.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">move_right</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Move a floating window a step to the right.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">move_up</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Move a floating window a step upwards.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">move_down</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Move a floating window a step downwards.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">name_workspace</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Name the current workspace.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">search_workspace</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Search for a workspace.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">search_win</b></dt>
<dd class="list-tag" style="margin-left: 16.00ex;">
Search the windows in the current workspace.</dd>
</dl>
<div class="spacer">
</div>
Custom bindings in the configuration file are specified as follows:<div class="spacer">
</div>
<blockquote style="margin-top: 0.00em;margin-bottom: 0.00em;">
<div class="display">
<code class="lit">bind[<i class="arg">action</i>] = <i class="arg">combo</i></code></div>
</blockquote>
<div class="spacer">
</div>
<i class="arg">action</i> is one of the actions listed above (or empty to unbind) and <i class="arg">combo</i> is in the form of zero or more modifier keys and/or special arguments (Mod1, Shift, MOD, etc.) and a normal key (b, Space, etc.) or a button (Button1 .. Button255), separated by &#8216;<code class="lit">+</code>&#8217;. Multiple key/button combinations may be bound to the same action.<div class="spacer">
</div>
Special arguments:<dl style="margin-top: 0.00em;margin-bottom: 0.00em;margin-left: 6.00ex;" class="list list-tag">
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">MOD</b></dt>
<dd class="list-tag" style="margin-left: 10.00ex;">
Substituted for the currently defined <b class="cmd">modkey</b>.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">ANYMOD</b></dt>
<dd class="list-tag" style="margin-left: 10.00ex;">
Select all modifier combinations not handled by another binding.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">REPLAY</b></dt>
<dd class="list-tag" style="margin-left: 10.00ex;">
Reprocess binding press/release events for other programs to handle. Unavailable for <b class="cmd">move</b>, <b class="cmd">resize</b> and <b class="cmd">resize_centered</b>.</dd>
</dl>
<div class="spacer">
</div>
<b class="flag">MOD</b> example:<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
bind[reset] = Mod4+q # bind Windows-key + q to reset
bind[] = Mod1+q # unbind Alt + q
bind[move] = MOD+Button3 # Bind move to M-Button3
bind[] = MOD+Button1 # Unbind default move binding.</pre>
<div class="spacer">
</div>
<b class="flag">ANYMOD</b> example:<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
bind[focus] = ANYMOD+Button3
bind[move] = MOD+Button3</pre>
<div class="spacer">
</div>
In the above example, <b class="flag">M-</b>&#10216;<b class="flag">Button3</b>&#10217; initiates <b class="cmd">move</b> and &#10216;<b class="flag">Button3</b>&#10217; pressed with any other combination of modifiers sets focus to the window/region under the pointer.<div class="spacer">
</div>
<b class="flag">REPLAY</b> example:<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
bind[focus] = REPLAY+Button3</pre>
<div class="spacer">
</div>
In the above example, when &#10216;<b class="flag">Button3</b>&#10217; is pressed without any modifier(s), focus is set to the window under the pointer and the button press is passed to the window.<div class="spacer">
</div>
To bind non-latin characters such as &#229; or &#960; you must enter the xkb character name instead of the character itself. Run <a class="link-man">xev(1)</a>, focus the window and press the specific key and in the terminal output read the symbol name. In the following example for &#229;:<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
KeyPress event, serial 41, synthetic NO, window 0x2600001,
root 0x15a, subw 0x0, time 106213808, (11,5), root:(359,823),
state 0x0, keycode 24 (keysym 0xe5, aring), same_screen YES,
XLookupString gives 2 bytes: (c3 a5) &quot;&#229;&quot;
XmbLookupString gives 2 bytes: (c3 a5) &quot;&#229;&quot;
XFilterEvent returns: False</pre>
<div class="spacer">
</div>
The xkb name is aring. In other words, in <i class="file">spectrwm.conf</i> add:<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
bind[program] = MOD+aring</pre>
</div>
<div class="section">
<h1 id="KEYBOARD_MAPPING_FILES">KEYBOARD MAPPING FILES</h1> Keyboard mapping files for several keyboard layouts are listed below. These files can be used with the <b class="cmd">keyboard_mapping</b> setting to load pre-defined key bindings for the specified keyboard layout.<div class="spacer">
</div>
<dl style="margin-top: 0.00em;margin-bottom: 0.00em;margin-left: 6.00ex;" class="list list-tag">
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">spectrwm_cz.conf</b></dt>
<dd class="list-tag" style="margin-left: 19.00ex;">
Czech Republic keyboard layout</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">spectrwm_es.conf</b></dt>
<dd class="list-tag" style="margin-left: 19.00ex;">
Spanish keyboard layout</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">spectrwm_fr.conf</b></dt>
<dd class="list-tag" style="margin-left: 19.00ex;">
French keyboard layout</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">spectrwm_fr_ch.conf</b></dt>
<dd class="list-tag" style="margin-left: 19.00ex;">
Swiss French keyboard layout</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">spectrwm_se.conf</b></dt>
<dd class="list-tag" style="margin-left: 19.00ex;">
Swedish keyboard layout</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">spectrwm_us.conf</b></dt>
<dd class="list-tag" style="margin-left: 19.00ex;">
United States keyboard layout</dd>
</dl>
</div>
<div class="section">
<h1 id="QUIRKS">QUIRKS</h1> <b class="name">spectrwm</b> provides &quot;quirks&quot; which handle windows that must be treated specially in a tiling window manager, such as some dialogs and fullscreen apps.<div class="spacer">
</div>
The default quirks are described below:<div class="spacer">
</div>
<dl style="margin-top: 0.00em;margin-bottom: 0.00em;margin-left: 6.00ex;" class="list list-tag">
<dt class="list-tag" style="margin-top: 0.00em;">
Firefox-bin:firefox-bin</dt>
<dd class="list-tag" style="margin-left: 38.00ex;">
TRANSSZ</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
Firefox:Dialog</dt>
<dd class="list-tag" style="margin-left: 38.00ex;">
FLOAT</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
Gimp:gimp</dt>
<dd class="list-tag" style="margin-left: 38.00ex;">
FLOAT + ANYWHERE</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
MPlayer:xv</dt>
<dd class="list-tag" style="margin-left: 38.00ex;">
FLOAT + FULLSCREEN + FOCUSPREV</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
OpenOffice.org 2.4:VCLSalFrame</dt>
<dd class="list-tag" style="margin-left: 38.00ex;">
FLOAT</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
OpenOffice.org 3.1:VCLSalFrame</dt>
<dd class="list-tag" style="margin-left: 38.00ex;">
FLOAT</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
pcb:pcb</dt>
<dd class="list-tag" style="margin-left: 38.00ex;">
FLOAT</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
xine:Xine Window</dt>
<dd class="list-tag" style="margin-left: 38.00ex;">
FLOAT + ANYWHERE</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
xine:xine Panel</dt>
<dd class="list-tag" style="margin-left: 38.00ex;">
FLOAT + ANYWHERE</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
xine:xine Video Fullscreen Window</dt>
<dd class="list-tag" style="margin-left: 38.00ex;">
FULLSCREEN + FLOAT</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
Xitk:Xitk Combo</dt>
<dd class="list-tag" style="margin-left: 38.00ex;">
FLOAT + ANYWHERE</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
Xitk:Xine Window</dt>
<dd class="list-tag" style="margin-left: 38.00ex;">
FLOAT + ANYWHERE</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
XTerm:xterm</dt>
<dd class="list-tag" style="margin-left: 38.00ex;">
XTERM_FONTADJ</dd>
</dl>
<div class="spacer">
</div>
The quirks themselves are described below:<div class="spacer">
</div>
<dl style="margin-top: 0.00em;margin-bottom: 0.00em;margin-left: 6.00ex;" class="list list-tag">
<dt class="list-tag" style="margin-top: 0.00em;">
ANYWHERE</dt>
<dd class="list-tag" style="margin-left: 21.00ex;">
Allow window to position itself, uncentered.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
FLOAT</dt>
<dd class="list-tag" style="margin-left: 21.00ex;">
This window should not be tiled, but allowed to float freely.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
FOCUSONMAP_SINGLE</dt>
<dd class="list-tag" style="margin-left: 21.00ex;">
When the window first appears on the screen, change focus to the window if there are no other windows on the workspace with the same WM_CLASS class/instance value. Has no effect when <b class="cmd">focus_mode</b> is set to <i class="arg">follow</i>.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
FOCUSPREV</dt>
<dd class="list-tag" style="margin-left: 21.00ex;">
On exit force focus on previously focused application not previous application in the stack.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
FULLSCREEN</dt>
<dd class="list-tag" style="margin-left: 21.00ex;">
Remove border to allow window to use full region size.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
IGNOREPID</dt>
<dd class="list-tag" style="margin-left: 21.00ex;">
Ignore the PID when determining the initial workspace for a new window. Especially useful for terminal windows that share a process.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
IGNORESPAWNWS</dt>
<dd class="list-tag" style="margin-left: 21.00ex;">
Ignore the spawn workspace when determining the initial workspace for a new window.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
MINIMALBORDER</dt>
<dd class="list-tag" style="margin-left: 21.00ex;">
Remove border when window is unfocused and floating.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
NOFOCUSCYCLE</dt>
<dd class="list-tag" style="margin-left: 21.00ex;">
Remove from normal focus cycle (focus_prev or focus_next). The window can still be focused using search_win.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
NOFOCUSONMAP</dt>
<dd class="list-tag" style="margin-left: 21.00ex;">
Don't change focus to the window when it first appears on the screen. Has no effect when <b class="cmd">focus_mode</b> is set to <i class="arg">follow</i>.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
OBEYAPPFOCUSREQ</dt>
<dd class="list-tag" style="margin-left: 21.00ex;">
When an application requests focus on the window via a _NET_ACTIVE_WINDOW client message (source indication of 1), comply with the request. Note that a source indication of 0 (unspecified) or 2 (pager) are always obeyed.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
TRANSSZ</dt>
<dd class="list-tag" style="margin-left: 21.00ex;">
Adjusts size on transient windows that are too small using <b class="cmd">dialog_ratio</b> (see <i class="link-sec"><a class="link-sec" href="#CONFIGURATION_FILES">CONFIGURATION FILES</a></i>).</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
WS[<i class="arg">n</i>]</dt>
<dd class="list-tag" style="margin-left: 21.00ex;">
Force a new window to appear on workspace <i class="arg">n</i>.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
XTERM_FONTADJ</dt>
<dd class="list-tag" style="margin-left: 21.00ex;">
Adjust <a class="link-man">xterm(1)</a> fonts when resizing.</dd>
</dl>
<div class="spacer">
</div>
Custom quirks in the configuration file are specified as follows:<div class="spacer">
</div>
<blockquote style="margin-top: 0.00em;margin-bottom: 0.00em;">
<div class="display">
<code class="lit">quirk[<i class="arg">class</i>[:<i class="arg">instance</i>[:<i class="arg">name</i>]]] = <i class="arg">quirk</i> [<span class="opt">+ <i class="arg">quirk ...</i></span>]</code></div>
</blockquote>
<div class="spacer">
</div>
<i class="arg">class</i>, <i class="arg">instance</i> (optional) and <i class="arg">name</i> (optional) are patterns used to determine which window(s) the quirk(s) apply to and <i class="arg">quirk</i> is one of the quirks from the list above.<div class="spacer">
</div>
Note that patterns are interpreted as POSIX Extended Regular Expressions. Any ':', '[' or ']' must be escaped with '\'. See <a class="link-man">regex(7)</a> for more information on POSIX Extended Regular Expressions.<div class="spacer">
</div>
For example:<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
quirk[MPlayer] = FLOAT + FULLSCREEN + FOCUSPREV # Float all windows having a class of 'MPlayer'
quirk[.*] = FLOAT # Float all windows by default.
quirk[.*:.*:.*] = FLOAT # Same as above.
quirk[Firefox:Navigator] = FLOAT # Float all Firefox browser windows.
quirk[::Console] = FLOAT # Float windows with WM_CLASS not set and a window name of 'Console'.
quirk[\[0-9\].*:.*:\[\[\:alnum\:\]\]*] = FLOAT # Float windows with WM_CLASS class beginning with a number, any WM_CLASS instance and a _NET_WM_NAME/WM_NAME either blank or containing alphanumeric characters without spaces.
quirk[pcb:pcb] = NONE # remove existing quirk</pre>
<div class="spacer">
</div>
You can obtain <i class="arg">class</i>, <i class="arg">instance</i> and <i class="arg">name</i> by running <a class="link-man">xprop(1)</a> and then clicking on the desired window. In the following example the main window of Firefox was clicked:<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
$ xprop | grep -E &quot;^(WM_CLASS|_NET_WM_NAME|WM_NAME)&quot;
WM_CLASS(STRING) = &quot;Navigator&quot;, &quot;Firefox&quot;
WM_NAME(STRING) = &quot;spectrwm - ConformalOpenSource&quot;
_NET_WM_NAME(UTF8_STRING) = &quot;spectrwm - ConformalOpenSource&quot;</pre>
<div class="spacer">
</div>
Note that <a class="link-man">xprop(1)</a> displays WM_CLASS as:<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
WM_CLASS(STRING) = &quot;&lt;instance&gt;&quot;, &quot;&lt;class&gt;&quot;</pre>
<div class="spacer">
</div>
In the example above the quirk entry would be:<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
quirk[Firefox:Navigator] = FLOAT</pre>
<div class="spacer">
</div>
<b class="name">spectrwm</b> also automatically assigns quirks to windows based on the value of the window's _NET_WM_WINDOW_TYPE property as follows:<div class="spacer">
</div>
<dl style="margin-top: 0.00em;margin-bottom: 0.00em;margin-left: 6.00ex;" class="list list-tag">
<dt class="list-tag" style="margin-top: 0.00em;">
_NET_WM_WINDOW_TYPE_DOCK</dt>
<dd class="list-tag" style="margin-left: 35.00ex;">
FLOAT + ANYWHERE</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
_NET_WM_WINDOW_TYPE_TOOLBAR</dt>
<dd class="list-tag" style="margin-left: 35.00ex;">
FLOAT + ANYWHERE</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
_NET_WM_WINDOW_TYPE_UTILITY</dt>
<dd class="list-tag" style="margin-left: 35.00ex;">
FLOAT + ANYWHERE</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
_NET_WM_WINDOW_TYPE_SPLASH</dt>
<dd class="list-tag" style="margin-left: 35.00ex;">
FLOAT</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
_NET_WM_WINDOW_TYPE_DIALOG</dt>
<dd class="list-tag" style="margin-left: 35.00ex;">
FLOAT</dd>
</dl>
<div class="spacer">
</div>
In all other cases, no automatic quirks are assigned to the window. Quirks specified in the configuration file override the automatic quirks.</div>
<div class="section">
<h1 id="EWMH">EWMH</h1> <b class="name">spectrwm</b> partially implements the Extended Window Manager Hints (EWMH) specification. This enables controlling windows as well as <b class="name">spectrwm</b> itself from external scripts and programs. This is achieved by <b class="name">spectrwm</b> responding to certain ClientMessage events. From the terminal these events can be conveniently sent using tools such as <a class="link-man">wmctrl(1)</a> and <a class="link-man">xdotool(1)</a>. For the actual format of these ClientMessage events, see the EWMH specification.<div class="spacer">
</div>
The id of the currently focused window is stored in the _NET_ACTIVE_WINDOW property of the root window. This can be used for example to retrieve the title of the currently active window with <a class="link-man">xprop(1)</a> and <a class="link-man">grep(1)</a>:<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
$ WINDOWID=`xprop -root _NET_ACTIVE_WINDOW | grep -o &quot;0x.*&quot;`
$ xprop -id $WINDOWID _NET_WM_NAME | grep -o &quot;\&quot;.*\&quot;&quot;</pre>
<div class="spacer">
</div>
A window can be focused by sending a _NET_ACTIVE_WINDOW client message to the root window. For example, using <a class="link-man">wmctrl(1)</a> to send the message (assuming 0x4a0000b is the id of the window to be focused):<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
$ wmctrl -i -a 0x4a0000b</pre>
<div class="spacer">
</div>
Windows can be closed by sending a _NET_CLOSE_WINDOW client message to the root window. For example, using <a class="link-man">wmctrl(1)</a> to send the message (assuming 0x4a0000b is the id of the window to be closed):<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
$ wmctrl -i -c 0x4a0000b</pre>
<div class="spacer">
</div>
Windows can be floated and un-floated by adding or removing the _NET_WM_STATE_ABOVE atom from the _NET_WM_STATE property of the window. This can be achieved by sending a _NET_WM_STATE client message to the root window. For example, the following toggles the floating state of a window using <a class="link-man">wmctrl(1)</a> to send the message (assuming 0x4a0000b is the id of the window to be floated or un-floated):<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
$ wmctrl -i -r 0x4a0000b -b toggle,_NET_WM_STATE_ABOVE</pre>
<div class="spacer">
</div>
Windows can also be iconified and un-iconified by substituting _NET_WM_STATE_HIDDEN for _NET_WM_STATE_ABOVE in the previous example:<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
$ wmctrl -i -r 0x4a0000b -b toggle,_NET_WM_STATE_HIDDEN</pre>
<div class="spacer">
</div>
Floating windows can also be resized and moved by sending a _NET_MOVERESIZE_WINDOW client message to the root window. For example, using <a class="link-man">wmctrl(1)</a> to send the message (assuming 0x4a0000b is the id of the window to be resize/moved):<div class="spacer">
</div>
<pre style="margin-left: 5.00ex;" class="lit display">
$ wmctrl -i -r 0x4a0000b -e 0,100,50,640,480</pre>
<div class="spacer">
</div>
This moves the window to (100,50) and resizes it to 640x480.<div class="spacer">
</div>
Any _NET_MOVERESIZE_WINDOW events received for stacked windows are ignored.</div>
<div class="section">
<h1 id="SIGNALS">SIGNALS</h1> Sending <b class="name">spectrwm</b> a HUP signal will restart it.</div>
<div class="section">
<h1 id="FILES">FILES</h1><dl style="margin-top: 0.00em;margin-bottom: 0.00em;" class="list list-tag">
<dt class="list-tag" style="margin-top: 0.00em;">
<i class="file">~/.spectrwm.conf</i></dt>
<dd class="list-tag" style="margin-left: 21.00ex;">
<b class="name">spectrwm</b> user specific settings.</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<i class="file">/etc/spectrwm.conf</i></dt>
<dd class="list-tag" style="margin-left: 21.00ex;">
<b class="name">spectrwm</b> global settings.</dd>
</dl>
</div>
<div class="section">
<h1 id="HISTORY">HISTORY</h1> <b class="name">spectrwm</b> was inspired by xmonad &amp; dwm.</div>
<div class="section">
<h1 id="AUTHORS">AUTHORS</h1> <b class="name">spectrwm</b> was written by:<div class="spacer">
</div>
<dl style="margin-top: 0.00em;margin-bottom: 0.00em;margin-left: 6.00ex;" class="list list-tag">
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">Marco Peereboom</b> &#10216;marco@peereboom.us&#10217;</dt>
<dd class="list-tag" style="margin-left: 48.00ex;">
</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">Ryan Thomas McBride</b> &#10216;mcbride@countersiege.com&#10217;</dt>
<dd class="list-tag" style="margin-left: 48.00ex;">
</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">Darrin Chandler</b> &#10216;dwchandler@stilyagin.com&#10217;</dt>
<dd class="list-tag" style="margin-left: 48.00ex;">
</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">Pierre-Yves Ritschard</b> &#10216;pyr@spootnik.org&#10217;</dt>
<dd class="list-tag" style="margin-left: 48.00ex;">
</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">Tuukka Kataja</b> &#10216;stuge@xor.fi&#10217;</dt>
<dd class="list-tag" style="margin-left: 48.00ex;">
</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">Jason L. Wright</b> &#10216;jason@thought.net&#10217;</dt>
<dd class="list-tag" style="margin-left: 48.00ex;">
</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">Reginald Kennedy</b> &#10216;rk@rejii.com&#10217;</dt>
<dd class="list-tag" style="margin-left: 48.00ex;">
</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">Lawrence Teo</b> &#10216;lteo@lteo.net&#10217;</dt>
<dd class="list-tag" style="margin-left: 48.00ex;">
</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">Tiago Cunha</b> &#10216;tcunha@gmx.com&#10217;</dt>
<dd class="list-tag" style="margin-left: 48.00ex;">
</dd>
<dt class="list-tag" style="margin-top: 0.00em;">
<b class="flag">David Hill</b> &#10216;dhill@mindcry.org&#10217;</dt>
<dd class="list-tag" style="margin-left: 48.00ex;">
</dd>
</dl>
</div>
<table class="foot">
<tbody>
<tr>
<td class="foot-date">
February 15, 2012</td>
<td class="foot-os">
Bitrig 1.0</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>