WMII
wmii-@VERSION@
2010 June
%!includeconf: header.t2t
= NAME =
wmii - Window Manager Improved²
= SYNOPSIS =
wmii [-a
] [-r ] +
wmii -v
= DESCRIPTION =
== Overview ==
`wmii` is a dynamic window manager for X11. In contrast to
static window management the user rarely has to think about how
to organize windows, no matter what he is doing or how many
applications are used at the same time. The window manager
adapts to the current environment and fits to the needs of the
user, rather than forcing him to use a preset, fixed layout and
trying to shoehorn all windows and applications into it.
`wmii` supports classic and tiled window management with
extended keyboard and mouse control. Classic window management
arranges windows in a floating layer in which tyen can be moved
and resized freely. Tiled window management arranges windows in
vertical columns. Each column holds an arbitrary number
arbitrary windows and arranges them vertically in a
non-overlapping manner. They can then be moved and resized,
among and within columns, at will.
`wmii` provides a virtual filesystem which represents the
internal state similar to the procfs of Unix operating systems.
Modifying this virtual filesystem results in changing the state
of the window manager. The virtual filesystem service can be
accessed through 9P-capable client programs, like
wmiir(1). This allows simple and powerful remote control
of the core window manager.
== Command Line Arguments ==
: -a
Specifies the address on which `wmii` should listen for
connections. The address takes the form
`!`. The default is of the form:
``` unix!/tmp/ns.$USER.${DISPLAY%.0}/wmii
which opens a unix socket per Plan 9 Port conventions. To
open a TCP socket, listening at port 4332 on the loopback
interface, use:
``` tcp!localhost!4332
$WMII_NAMESPACE is automatically set to this value.
: -r
Specifies which rc script to run. If consists of a
single argument, $WMII_CONFPATH is searched before $PATH.
Otherwise, it is passed to the shell for evaluation. The
environment variables $WMII_ADDRESS and $WMII_CONFPATH are
preset for the script.
:
== Terminology ==
: Display
A running X server instance consisting of input
devices and screens.
: Screen
A physical or virtual (Xinerama or Xnest(1))
screen of an X display.
: Window
A (rectangular) drawable X object which is
displayed on a screen, usually an application window.
: Client
An application window surrounded by a frame window
containing a border and a titlebar.
: Floating layer
A screen layer of `wmii` on top of all other layers,
where clients are arranged in a classic (floating)
manner. They can be resized or moved freely.
: Managed layer
A screen layer of `wmii` underneath the floating layer,
where clients are arranged in a non-overlapping
(managed) manner. Here, the window manager dynamically
assigns each client a size and position. The managed
layer consists of columns.
: Tag
Alphanumeric strings which can be assigned to a
client. This provides a mechanism to group clients with
similar properties. Clients can have one tag, e.g.
_work_, or several tags, e.g. _work+mail_.
Tags are separated with the _+_ character.
: View
A set of clients containing a specific tag, quite
similar to a workspace in other window managers. It
consists of the floating and managed layers.
: Column
A column is a screen area which arranges clients
vertically in a non-overlapping way. Clients can be
moved and resized between and within columns freely.
: Bar
The bar at the bottom of the screen displays a label
for each view and allows the creation of arbitrary
user-defined labels.
: Event
An event is a message which can be read from a
special file in the filesystem of `wmii`, such as a
mouse button press, a key press, or a message written by
a different 9P-client.
:
== Basic window management ==
Running a raw `wmii` process without a wmiirc(1) script provides
basic window management capabilities. However, to use it
effectively, remote control through its filesystem interface is
necessary. Without such a script, it is only possible to move
and resize clients with the mouse, but not to change their tags
or to switch views. Other interactions, such as customizing the
style, killing or retagging clients, and grabbing keys, cannot
be achieved without accessing the filesystem.
The filesystem can be accessed by connecting to the //address//
of `wmii` with any 9P-capable client, such as wmiir(1)
== Actions ==
The default configuration provides for a special menu of
actions. These consist of either shell scripts in $WMII_CONFPATH
or action definitions included in wmiirc.
Here is a list of the default actions:
| exec | Replace the window manager with another program
| quit | Leave the window manager nicely
| rehash | Refresh the program list
| showkeys | Display a list of key bindings recognized by wmii
| status | Periodically print date and load average to the bar
| welcome | Display a welcome message that contains the wmii tutorial
== Default Key Bindings ==
All of the provided `wmiirc` scripts accept at least the following key
bindings. They should also provide a `showkeys` action to open a
key binding quick-reference.
=== Moving Around ===
|| Key | Action
| Mod-h | Move to a window to the _left_ of the one currently focused
| Mod-l | Move to a window to the _right_ of the one currently focused
| Mod-j | Move to the window _below_ the one currently focused
| Mod-k | Move to a window _above_ the one currently focused
| Mod-space | Toggle between the managed and floating layers
| Mod-t | Move to the view of the given
| Mod-n | Move to the next view
| Mod-b | Move to the previous view
| Mod-//[0-9]// | Move to the view with the given number
=== Moving Things Around ===
|| Key | Action
| Mod-Shift-h | Move the current window _window_ to a column on the _left_
| Mod-Shift-l | Move the current window to a column on the _right_
| Mod-Shift-j | Move the current window below the window beneath it.
| Mod-Shift-k | Move the current window above the window above it.
| Mod-Shift-space | Toggle the current window between the managed and floating layer
| Mod-Shift-t | Move the current window to the view of the given
| Mod-Shift-//[0-9]// | Move the current window to the view with the given number
=== Miscellaneous ===
|| Key | Action
| Mod-m | Switch the current column to _max mode_
| Mod-s | Switch the current column to _stack mode_
| Mod-d | Switch the current column to _default mode_
| Mod-Shift-c | `Kill` the selected client
| Mod-p | `Execute`
| Mod-a | `Execute` the named / -> [+]*
Where,
``` := | px
When a new column, , is created on a view whose name
matches , it is given the th supplied .
If there is no th width, it is given 1/th of the
screen.
: rules
PROVISIONAL
The _rules_ file contains a list of rules that may be used
to automatically set properties of new clients. Rules are
specified as:
``` // = ...
where each represents a command in the clients _ctl_
file, and each represents the value to assign to it.
The rules are applied when the client is first started and
the contents of the _props_ file match the regular
expression .
Additionally, the following keys are accepted and have
special meaning:
>>
: continue
Normally, when a matching rule is encountered, rule
matching stops. When the continue key is provided
(with any value), matching continues at the next
rule.
: force-tags=
Like _tags_, but overrides any settings obtained
obtained from the client's group or from the
**\_WMII_TAGS** window property.
<<
: keys
The _keys_ file contains a list of keys which
`wmii` will grab. Whenever these key combinations
are pressed, the string which represents them are
written to '/event' as: Key
: event
The _event_ file never returns EOF while
`wmii` is running. It stays open and reports events
as they occur. Included among them are:
>>
: [Not]Urgent [Manager|Client]
's urgent hint has been set or
unset. The second arg is [Client] if it's
been set by the client, and [Manager] if
it's been set by `wmii` via a control
message.
: [Not]UrgentTag [Manager|Client]
A client on has had its urgent hint
set, or the last urgent client has had its
urgent hint unset.
: Client