guide: added corrections spoted by Ross Mohn and Denis Grelich on the ml

This commit is contained in:
salva 2006-04-23 19:27:11 +00:00
parent 09b8c2961a
commit af17ce76bf

View File

@ -20,18 +20,19 @@
\usepackage[left=3cm,top=2cm,right=2cm,bottom=3cm]{geometry} \usepackage[left=3cm,top=2cm,right=2cm,bottom=3cm]{geometry}
%\usepackage{ngerman} %\usepackage{ngerman}
\usepackage{times} \usepackage{times}
\usepackage{indentfirst,html,moreverb} \usepackage{hyperref} % option [dvipdfm] disables clickable refs
\usepackage{indentfirst,moreverb}
% remove this if you want, it's just a matter of imposed imperialist cultures % remove this if you want, it's just a matter of imposed imperialist cultures
% so if I'm given the chance to choose I choose to indent the first paragraph % so if I'm given the chance to choose I choose to indent the first paragraph
% (I learn this way in the school, and don't want to relearn the british way) % (I learn this way in the school, and don't want to relearn the british way)
%% welcome to the the dirty hacks section %% welcome to the dirty tricks section
\newcommand{\hrefx}[1]{\href{#1}{#1}} % explicit \href \newcommand{\hrefx}[1]{\href{#1}{#1}} % explicit \href
% un'% below so latex2html can handle refs correctly (until a better solution is found) % un'% below so latex2html can handle refs correctly (until a better solution is found)
%\usepackage{html} % gives clickable refs to latex2html
%\renewcommand{\href}[2]{\htmladdnormallink{#2}{#1}} %\renewcommand{\href}[2]{\htmladdnormallink{#2}{#1}}
%\renewcommand{\hrefx}[1]{\htmladdnormallink{#1}{#1}} %\renewcommand{\hrefx}[1]{\htmladdnormallink{#1}{#1}}
%\renewcommand{\verbatiminput}[1]{\input{#1}} %\renewcommand{\verbatiminput}[1]{\input{#1}}
%\usepackage[dvipdfm]{hyperref} % disable clickable refs
\newenvironment{itemize*} \newenvironment{itemize*}
{\begin{itemize} {\begin{itemize}
@ -45,8 +46,9 @@ Steffen\\Liebergeld \\\\
Salvador\\Peir\'o Salvador\\Peir\'o
} }
\title{A Guide to wmii-3% \title{A Guide to wmii--3%
\thanks{Thanks to the wmii community in particular all the people in the Credits section} \thanks{Thanks to the wmii community, in particular all the
people mentioned at \href{http://wmii.de/index.php/WMII/People}{WMII/people}.}
} }
%\email{stepardo@gmail.com \and saoret.one@gmail.com} %\email{stepardo@gmail.com \and saoret.one@gmail.com}
@ -63,30 +65,31 @@ Salvador\\Peir\'o
\subsection{Who brought this to you} \subsection{Who brought this to you}
This guide was written by Steffen Liebergeld, who got lots of help This guide was written by Steffen Liebergeld, who got lots of help
from Salvador Peir\'o and a patch from Jochen Schwartz. from Salvador Peir\'o and a patch from Jochen Schwartz, and lots of
corrections and suggestions of the wmii users.
\subsection{The purpose of this document} \subsection{The purpose of this document}
This document tries to be a good starting point for people new to This document tries to be a good starting point for people new to
wmii-3. People who have used wmi, wmii-2.5 or even ion will get wmii--3. People who have used wmi, wmii--2.5 or even ion will get
to know what is new and different in wmii-3, and people who have to know what is new and different in wmii--3, and people who have
never used a tiling window manager before will fall in love with never used a tiling window manager before will fall in love with
the new concept. the new concept.
\subsection{Wmii - the second generation of window manager improved} \subsection{Wmii --- the second generation of window manager improved}
Wmii-3 is a new kind of window manager. It is designed to have a Wmii--3 is a new kind of window manager. It is designed to have a
small memory footprint, be extremely modularised and have as small memory footprint, be extremely modularised and have as
little code as possible, thus ensuring as few bugs as possible. In little code as possible, thus ensuring as few bugs as possible. In
fact, one of our official goal is to not to exceed $10 K$ lines of fact, one of our official goal is to not to exceed $10 k$ lines of
code~\footnote{ code~\footnote{
the $10 K$ SLOC restriction benefits that it's easier the $10 k$ SLOC restriction benefits that it's easier
to read/understand, thus it's easier to use and get used to it.}. to read/understand, thus it's easier to use and get used to it.}.
Wmii tries to be very portable and to give the user as many Wmii tries to be very portable and to give the user as many
freedom as possible. freedom as possible.
Wmii-3 is the third mayor release of the second generation of the Wmii--3 is the third mayor release of the second generation of the
window manager improved~\footnote{ the ii is actually a roman window manager improved~\footnote{ the ii is actually a roman
letter for the number 2.}. Wmii first introduced a new paradigm letter for the number 2.}. Wmii first introduced a new paradigm
in version 2.5, namely the dynamic window management, that in version 2.5, namely the dynamic window management, that
@ -104,15 +107,16 @@ Salvador\\Peir\'o
If you only want to know how to operate wmii-3 and are not If you only want to know how to operate wmii-3 and are not
interested in the inner workings or in scripting, you may read the interested in the inner workings or in scripting, you may read the
chapters ``Configuration and install'', ``Terminology'' and sections \ref{sec:conf&install}, \ref{sec:terms} and subsection
``First steps'' and skip the rest. \ref{subsec:firststeps} and skip the rest.
However, to get the most out of wmii-3 you should possibly read However, to get the most out of wmii--3 you should possibly read
the whole document. Another possibility is to read the the whole document. Another possibility is to read the
introductory chapters first, use some time to get settled in the introductory chapters first, use some time to get settled in the
wmii-world and read the scripting chapters later on. wmii--world and read the scripting chapters later on.
\section{Configuration and install} \section{Configuration and install}
\label{sec:conf&install}
\subsection{Obtaining wmii} \subsection{Obtaining wmii}
@ -125,7 +129,7 @@ Salvador\\Peir\'o
\subsection{Configuration and Installation} \subsection{Configuration and Installation}
First of all, have a look if there are binary packages of wmii in First of all, have a look if there are binary packages of wmii in
your distribution. Debian, Ubuntu and gentoo should already have your distribution. Debian, Ubuntu and Gentoo should already have
good packages. If you found a package to trust, you may now safely good packages. If you found a package to trust, you may now safely
skip this paragraph. skip this paragraph.
@ -144,7 +148,7 @@ Salvador\\Peir\'o
In case you're installing a newer version of wmii, this is the In case you're installing a newer version of wmii, this is the
first thing you should do otherwise you'll end up messing first thing you should do otherwise you'll end up messing
binaries, configuration files and manual-pages of different and binaries, configuration files and manual--pages of different and
thus incompatible versions, to do this run the above commands. thus incompatible versions, to do this run the above commands.
\item Unpack it: \item Unpack it:
@ -159,14 +163,14 @@ Salvador\\Peir\'o
\end{verbatim} \end{verbatim}
The most important variable to set is the \verb+PREFIX+, which The most important variable to set is the \verb+PREFIX+, which
states, where you want wmii-3 to be installed to. states, where you want wmii--3 to be installed to.
\item Run make and make install: \item Run make and make install:
\begin{verbatim} \begin{verbatim}
make && make install make && make install
\end{verbatim} \end{verbatim}
\item Instruct the X-Server to start wmii as your default window \item Instruct the X--server to start wmii as your default window
manager. You may do that by editing the file \emph{\~{}/.xinitrc}. manager. You may do that by editing the file \emph{\~{}/.xinitrc}.
\begin{verbatim} \begin{verbatim}
@ -184,13 +188,14 @@ Salvador\\Peir\'o
And you are finished. Please note that we do not use the autoconf And you are finished. Please note that we do not use the autoconf
tools for various reasons, you may read about it here~\footnote{ tools for various reasons, you may read about it here~\footnote{
\hrefx{http://www.ohse.de/uwe/articles/aal.html} \linebreak[1] and \hrefx{http://www.ohse.de/uwe/articles/aal.html} and
\hrefx{http://lists.cse.psu.edu/archives/9fans/2003-November/029714.html} \hrefx{http://lists.cse.psu.edu/archives/9fans/2003-November/029714.html}
} . Please don't ask us to use autoconf, we won't do it. } . Please don't ask us to use autoconf, we won't do it.
\section{Terminology} \section{Terminology}
\label{sec:terms}
Before you actually start doing your first steps in wmii, we have to Before you actually start doing your first steps in wmii, we have to
make sure we are both talking about the same things. So here is some make sure we are both talking about the same things. So here is some
terminology. terminology.
@ -199,12 +204,12 @@ Salvador\\Peir\'o
A client is a program, that draws a window to the A client is a program, that draws a window to the
screen~\footnote{ Actually it is the program that requests the screen~\footnote{ Actually it is the program that requests the
X-server to draw the window. But never mind;-)}. For example your X--server to draw the window. But never mind;-)}. For example your
browser or your xterm is a client. browser or your xterm is a client.
\subsection{Focus} \subsection{Focus}
In X11, exactly one client gets the users input. If you write some In X11, exactly one client gets the user's input. If you write some
command in your xterm, this xterm has the focus, whereas all the command in your xterm, this xterm has the focus, whereas all the
other windows do not receive/react on the input you other windows do not receive/react on the input you
give~\footnote{ Actually this is not precise at all, because some give~\footnote{ Actually this is not precise at all, because some
@ -224,10 +229,10 @@ Salvador\\Peir\'o
Tags are names/labels you can give for clients. That allows you to Tags are names/labels you can give for clients. That allows you to
group clients. In wmii, there are no workspaces anymore. Instead, group clients. In wmii, there are no workspaces anymore. Instead,
we simply show only one tag at one time. Thus, if you name a we simply show only one tag at one time. Thus, if you name a
client "web-browser" and request the wm to only show the tag client ``web-browser'' and request the wm to only show the tag
"web-browser", you will only see that one client. If you tag a ``web-browser'', you will only see that one client. If you tag a
xterm with the same tag, it will also be shown, when your first xterm with the same tag, it will also be shown, when your first
client with the tag "web-browser" is visible. It is also possible client with the tag ``web-browser'' is visible. It is also possible
to give clients multiple tags, but more on this later. to give clients multiple tags, but more on this later.
\subsection{View} \subsection{View}
@ -235,7 +240,7 @@ Salvador\\Peir\'o
The view concept refers to the tags that you want to view at a The view concept refers to the tags that you want to view at a
given time, so when you request the window manager to only show given time, so when you request the window manager to only show
windows with one particular tag, you may call this a view. You windows with one particular tag, you may call this a view. You
might imagine, that this somehow resembles the "workspace" of might imagine, that this somehow resembles the ``workspace'' of
other window managers. other window managers.
You might have different views with only one of them visible at a You might have different views with only one of them visible at a
@ -265,7 +270,7 @@ Salvador\\Peir\'o
maximised in the column, showing only one of them at a time, while maximised in the column, showing only one of them at a time, while
hiding the others. And last but not least you may have the clients hiding the others. And last but not least you may have the clients
stacked, which means to have one client use as much space as stacked, which means to have one client use as much space as
possible and to show only the title-bars of the other windows. possible and to show only the title--bars of the other windows.
\section{Getting started} \section{Getting started}
@ -279,9 +284,9 @@ Salvador\\Peir\'o
On a special note, the \emph{MOD} key I am referring to may resemble On a special note, the \emph{MOD} key I am referring to may resemble
different keys on different platforms. It is what X knows as the different keys on different platforms. It is what X knows as the
\emph{Mod1} or \emph{Alt} key. Probably this is the key labelled with \emph{Mod1} or \emph{Alt} key. Probably this is the key labelled with
\emph{Alt} at the left of the space-bar on your keyboard. \emph{Alt} at the left of the space--bar on your keyboard.
The notation \emph{MOD}-\emph{Key} means to press \emph{MOD}, hold The notation \emph{MOD}--\emph{Key} means to press \emph{MOD}, hold
it and to press \emph{Key}. it and to press \emph{Key}.
All key combinations may be freely configured, but for the sake of All key combinations may be freely configured, but for the sake of
@ -290,35 +295,33 @@ Salvador\\Peir\'o
section \ref{sec:scripting}. section \ref{sec:scripting}.
\subsection{First steps} \subsection{First steps}
\label{subsec:firststeps}
You may now start your X session. Since it is the first time you You may now start your X session. Since it is the first time you
start wmii, a window with a little tutorial will show up. You are start wmii, a window with a little tutorial will show up. You are
free to read it, but you may also follow the beginners guide :-) free to read it, but you may also follow the beginners guide :-)
First of all, press \emph{MOD-Enter} to start an xterm. It will First of all, press \emph{MOD--Enter} to start an xterm. It will
take half of the vertical space, so you now have two equally big take half of the vertical space, so you now have two equally big
windows. If you press \emph{MOD-Enter} again, you have three windows. If you press \emph{MOD--Enter} again, you have three
windows that are equally big. windows that are equally big.
To switch between the three windows, you may now press To switch between the three windows, you may now press
\emph{MOD-j}, which cycles the focus between the three windows. \emph{MOD--j}, which cycles the focus between the three windows.
You may also press \emph{MOD-k} to switch to the window above or You may also press \emph{MOD--k} to switch to the window above or
\emph{MOD-j} to switch to the window below the current. \emph{MOD--j} to switch to the window below the current.
Now have a look at the title-bars of those windows. They show some Now have a look at the title--bars of those windows. They show some
important information: the first term is the name of the tag of important information: the first term is the name of the tag of
the window. Then, after the vertical line (the pipe symbol) wmii the window. The following term shows the title of the window.
shows the title of the window.
The same information is also shown on the menu-bar. The first The same information is also shown on the menu--bar. The first
things are names of the different tags you gave to your windows, things are names of the different tags you gave to your windows,
with the current view highlighted. Then it shows the title of the with the current view highlighted. On the right side it shows some
focused window. On the right side it shows some system status system status information like the load and the current time
information like the load and the current time (see subsection~% (see subsection~\ref{subsec:status} for details).
\ref{subsec:status} for details).
\subsection{Using Columns} \subsection{Using columns}
As you know wmii uses columns to align your windows. Even now, As you know wmii uses columns to align your windows. Even now,
that you didn't really see it your view already consists of one that you didn't really see it your view already consists of one
@ -326,7 +329,7 @@ Salvador\\Peir\'o
In wmii columns are defined by its clients. Thus you need a client In wmii columns are defined by its clients. Thus you need a client
to create a new column. That is why you may now focus a client of to create a new column. That is why you may now focus a client of
your choice and press \emph{MOD-Shift-l}. As you see, wmii created your choice and press \emph{MOD--Shift--l}. As you see, wmii created
a new column by dividing the view horizontally in two equally big a new column by dividing the view horizontally in two equally big
spaces. The last focused client has been put into the new column. spaces. The last focused client has been put into the new column.
@ -337,16 +340,16 @@ Salvador\\Peir\'o
It should be clear, that you really need at least two clients to It should be clear, that you really need at least two clients to
have two columns. have two columns.
If you press \emph{MOD-j} to change focus, you will see that wmii If you press \emph{MOD--j} to change focus, you will see that wmii
actually cycles the focus in the current column only. That is why actually cycles the focus in the current column only. That is why
you need commands to change the current column. you need commands to change the current column.
In wmii you may use \emph{MOD-l} to change to the column on the In wmii you may use \emph{MOD--l} to change to the column on the
right and \emph{MOD-h} to change to the column on the left. right and \emph{MOD--h} to change to the column on the left.
It is also possible to make a client swap columns. To move a It is also possible to make a client swap columns. To move a
client to the column on the left, press \emph{MOD-Control-h} and client to the column on the left, press \emph{MOD--Control--h} and
to move it to the right column, press \emph{MOD-Control-l}. to move it to the right column, press \emph{MOD--Control--l}.
\subsection{What about layouts} \subsection{What about layouts}
@ -355,19 +358,19 @@ Salvador\\Peir\'o
have different columns in one view, each having another layout. have different columns in one view, each having another layout.
The default layout is to give each client in the column equally The default layout is to give each client in the column equally
much vertical space. You may enable this layout with \emph{MOD-d} much vertical space. You may enable this layout with \emph{MOD--d}
(where the ``d'' stands for default). (where the ``d'' stands for default).
Another layout is the stacked layout. You enable stacking by Another layout is the stacked layout. You enable stacking by
\emph{MOD-s}. As you see now, there in only one client using as \emph{MOD--s}. As you see now, there in only one client using as
much space as possible, whereas you only see the title-bars of the much space as possible, whereas you only see the title--bars of the
other clients in the column. You may still switch between the other clients in the column. You may still switch between the
clients in the column using \emph{MOD-j}. clients in the column using \emph{MOD--j}.
The third layout is the max-layout, which maximises all the The third layout is the max-layout, which maximises all the
clients to use all the space in the column each. Only the focused clients to use all the space in the column each. Only the focused
client is visible and the other are hidden behind. You may still client is visible and the other are hidden behind. You may still
switch between those clients with \emph{MOD-j}. switch between those clients with \emph{MOD--j}.
\subsection{Float pages} \subsection{Float pages}
@ -386,9 +389,9 @@ Salvador\\Peir\'o
rule. rule.
To come to the point: wmii also allows you to use floating To come to the point: wmii also allows you to use floating
clients. You may enable floating mode for a window by focusing it clients. You may toggle your focus between floating and column
and pressing \emph{MOD-Space}. You may bring it back into a column modes by pressing \emph{MOD--Space}. While \emph{MOD--Shift--Space}
(the column it came from) by pressing \emph{MOD-Shift-Space}. toggles the focused window between floating and column modes .
As a side note, this floating mode is actually the zeroth column As a side note, this floating mode is actually the zeroth column
internally. That is why there is not much special internal internally. That is why there is not much special internal
@ -407,9 +410,9 @@ Salvador\\Peir\'o
actually possible. actually possible.
You may give the focused client another tag by pressing You may give the focused client another tag by pressing
\emph{MOD-Shift-Number}, number being one of the numbers 1 to 9. \emph{MOD--Shift--Number}, number being one of the numbers 0 to 9.
You can then switch views by pressing \emph{MOD-Number}. You can then switch views by pressing \emph{MOD--Number}.
Whenever a new client is created, it automatically gets the tag of Whenever a new client is created, it automatically gets the tag of
the current view. the current view.
@ -423,20 +426,20 @@ Salvador\\Peir\'o
then be able to assign multiple tags to one client and to use then be able to assign multiple tags to one client and to use
proper strings as tags. proper strings as tags.
\subsection{How do I close a window} \subsection{How do I close a window?}
Well, first of all every X-Client should have an option to close a Well, first of all every X-client should have an option to close a
window. But -as Murphy said- the world isn't like it should window. But --as Murphy said-- the world isn't like it should
be. Thus, the Window Manager has to provide a fix for this. In be. Thus, the window manager has to provide a fix for this. In
wmii, we abandoned silly title-bar buttons and created a shortcut wmii, we abandoned silly title-bar buttons and created a shortcut
\emph{MOD-Shift-c} to close a window. \emph{MOD--Shift--c} to close a window.
\subsection{How do I start programs} \subsection{How do I start programs?}
You may start programs out of a xterm. But in wmii, there is a You may start programs out of an xterm. But in wmii, there is a
special program launcher, which is accessible per special program launcher, which is accessible per
\emph{MOD-p}. Please note, that the logic behind this program \emph{MOD--p}. Please note, that the logic behind this program
launcher is mainly implemented in a shell-script. launcher is mainly implemented in a shell--script.
You will see a list of programs. If you now start to type, the You will see a list of programs. If you now start to type, the
launcher will cut that list to only show programs whose names launcher will cut that list to only show programs whose names
@ -449,6 +452,10 @@ Salvador\\Peir\'o
enter~\footnote{On my system it is sufficient to type ``efo'' to enter~\footnote{On my system it is sufficient to type ``efo'' to
start firefox;-)}. start firefox;-)}.
\subsection{How do I quit wmii?}
You may quit wmii, by using the action's menu (\emph{MOD--a})
and selecting the action ``quit'. That's all.
\section{Looking under the hood} \section{Looking under the hood}
In this chapter you will learn how wmii was designed, which ideas In this chapter you will learn how wmii was designed, which ideas
@ -462,7 +469,7 @@ Salvador\\Peir\'o
client itself, thus taking all the extra work from the user and client itself, thus taking all the extra work from the user and
letting him concentrate on his work. letting him concentrate on his work.
\subsection{Modularity - using distinct tools for distinct tasks} \subsection{Modularity -- using distinct tools for distinct tasks}
The developers of wmii know about the most powerful ideas of The developers of wmii know about the most powerful ideas of
Unix. One of them is the idea to use distinct tools for distinct Unix. One of them is the idea to use distinct tools for distinct
@ -470,7 +477,7 @@ Salvador\\Peir\'o
split the task into two smaller binaries, each with a distinct split the task into two smaller binaries, each with a distinct
job. job.
\subsection{The glue that puts it all together - 9p} \subsection{The glue that puts it all together -- 9P}
Programs in Unix have several different possibilities to exchange Programs in Unix have several different possibilities to exchange
information, the most powerful being sockets. information, the most powerful being sockets.
@ -481,15 +488,15 @@ Salvador\\Peir\'o
The basic ideas for configuring and running wmii were taken from The basic ideas for configuring and running wmii were taken from
Plan9 too. Like in Plan9, everything configurable in wmii has a Plan9 too. Like in Plan9, everything configurable in wmii has a
file-like interface, so everything is accessed consistently Thus, file--like interface, so everything is accessed consistently Thus,
if you want to interact with a running wmii, you may access those if you want to interact with a running wmii, you may access those
files either using the shipped tool \emph{wmiir} or - if you use files either using the shipped tool \emph{wmiir} or -- if you use
9p2000 - you may also mount the virtual file-system of wmii under 9P2000 -- you may also mount the virtual file--system of wmii under
some directory in the hierarchy maintained by the OS kernel. some directory in the hierarchy maintained by the OS kernel.
\subsection{Tools} \subsection{Tools}
This section gives an little overview of the tools that wmii, but This section gives a little overview of the tools that come wmii, but
for more detailed explanations you should read the man page of each for more detailed explanations you should read the man page of each
tool, that comes with wmii. tool, that comes with wmii.
@ -497,7 +504,7 @@ Salvador\\Peir\'o
\item \item
\emph{wmiir} is a little tool we use to alter the files in the \emph{wmiir} is a little tool we use to alter the files in the
virtual file-system of wmii. It basically has four operations: virtual file--system of wmii. It basically has four operations:
\begin{itemize*} \begin{itemize*}
\item read \item read
@ -508,15 +515,15 @@ Salvador\\Peir\'o
Wmiir needs to know the address of the file-system to work Wmiir needs to know the address of the file-system to work
on, so on startup wmii sets the environment variable on, so on startup wmii sets the environment variable
\verb+WMIIR_ADDRESS+ to make sure any tool wanting to \verb+WMII_ADDRESS+ to make sure any tool wanting to
communicate with wmiiwm know it's file-system address. communicate with wmiiwm know it's file--system address.
This address can be: This address can be:
\begin{itemize*} \begin{itemize*}
\item a local unix address given with \verb+unix!/path/to/socket+ \item a local unix address given with \verb+unix!/path/to/socket+
\item a tcp address given with \verb+tcp!hostname:port+ \item a tcp address given with \verb+tcp!hostname:port+
\end{itemize*} \end{itemize*}
If you want to work on another file-system, you may specify it If you want to work on another file--system, you may specify it
manually with the switch \emph{-a address}. A sample invocation manually with the switch \emph{-a address}. A sample invocation
would look like the following: would look like the following:
\begin{verbatim} \begin{verbatim}
@ -573,14 +580,14 @@ Salvador\\Peir\'o
% - who doesn't have a shell?, extra! we're giving them for free this week % - who doesn't have a shell?, extra! we're giving them for free this week
\subsection{actions} \subsection{Actions}
In wmii you may group certain tasks into \emph{actions}. Actions In wmii you may group certain tasks into \emph{actions}. Actions
are nothing more than simple scripts which are located either in are nothing more than simple scripts which are located either in
your local or in the default wmii configuration your local or in the default wmii configuration
directory~\footnote{ \texttt{\$CONFPREFIX} is set in directory~\footnote{ \texttt{\$CONFPREFIX} is set in
\emph{config.mk} and by default points to \texttt{/usr/local/etc} \emph{config.mk} and by default points to \texttt{/usr/local/etc}
or \texttt{~/.wmii-3} if you have such a directory}. or \texttt{\~{}/.wmii-3} if you have such a directory}.
By pressing \emph{MOD-a} you can open the actions-menu. If works By pressing \emph{MOD-a} you can open the actions-menu. If works
similar to the program launcher, but only shows actions. similar to the program launcher, but only shows actions.
@ -601,7 +608,10 @@ Salvador\\Peir\'o
stop wmii before editing. After you've finished editing, you may stop wmii before editing. After you've finished editing, you may
simply run wmiirc and the changes will take effect, to do so just simply run wmiirc and the changes will take effect, to do so just
open the actions menu (via \emph{MOD-a}) and choose the open the actions menu (via \emph{MOD-a}) and choose the
\emph{action}. \emph{action}. It's also possible launch wmii actions directly
from an xterm (or similar terminal emulator program), this is a nice
side effect that results of exporting \verb+$PATH+ in the wmii
startup script.
\subsection{wmiirc} \subsection{wmiirc}
@ -635,21 +645,21 @@ Salvador\\Peir\'o
\verb+WMII_SELCOLORS+ define the colours of the selected clients \verb+WMII_SELCOLORS+ define the colours of the selected clients
window title and border, whereas \verb+WMII_NORMCOLORS+ defines window title and border, whereas \verb+WMII_NORMCOLORS+ defines
the colours of all the other clients. The numbers are hexadecimal the colours of all the other clients. The numbers are hexadecimal
rgb, which you might know from html. You might get them with the rgb, which you might know from HTML. You might get them with the
Gimps colour-chooser. Gimps colour-chooser.
The definitions are as follows: the first is the colour of the The definitions are as follows: the first is the colour of the
strings in bars and menus. The second is the main colour of bars strings in bars and menus. The second is the main colour of bar
borders, whereas the third defines the borders and is used for the borders, whereas the third defines the borders and is used for the
3d-effects of title-bars and menus. 3D-effects of title-bars and menus.
\verb+WMII_FONT+ accepts font names or full font strings, which \verb+WMII_FONT+ accepts font names or full font strings, which
you might get from xfontsel. It defines the font to be used in you might get from xfontsel. It defines the font to be used in
titlebars, status-bar and in wmiimenu. titlebars, status-bar and in wmiimenu.
\subsection{Filling the status-bar} \subsection{Filling the status-bar}
\label{subsec:status} \label{subsec:status}
The status bar of wmii has it's own directory \verb+/bar+ with The status bar of wmii has it's own directory \verb+/bar+ with
one subdirectory for each of the labels created. So while editing one subdirectory for each of the labels created. So while editing
this document my status-bar looked like: this document my status-bar looked like:
@ -671,7 +681,7 @@ Salvador\\Peir\'o
The first file contains the colour definitions that control how the The first file contains the colour definitions that control how the
bar will be painted(appearance), while the second holds the data bar will be painted (appearance), while the second holds the data
to show (content). to show (content).
So you can start your own experiments by creating a new label, and So you can start your own experiments by creating a new label, and
@ -690,7 +700,7 @@ Salvador\\Peir\'o
like the following: like the following:
\begin{itemize*} \begin{itemize*}
\item \emph{status}: monitoring remaining battery, temperature,\dots on laptops \item \emph{status}: monitoring remaining battery, temperature, \dots on laptops
\item \emph{status-mpd}: controlling the running mpd \item \emph{status-mpd}: controlling the running mpd
\item \emph{status-load}: show the machine load \item \emph{status-load}: show the machine load
\item \emph{status-net}: monitoring wireless network signal \item \emph{status-net}: monitoring wireless network signal
@ -699,7 +709,7 @@ Salvador\\Peir\'o
And last read the default status script and ask yourself: what And last read the default status script and ask yourself: what
does it do? \verbatiminput{../rc/status} The first line is a does it do? \verbatiminput{../rc/status} The first line is a
\verb+xwrite+ function declaration, to save us from typing a lot \verb+xwrite+ function declaration, to save us from typing a lot
by issueing a write over the file named by first argument. The by issuing a write over the file named by first argument. The
following 3 lines take care of creating and setting up the following 3 lines take care of creating and setting up the
\verb+status+ label. And the last section is a \verb+while+ loop \verb+status+ label. And the last section is a \verb+while+ loop
that \emph{tries} to write the machine's load and date information that \emph{tries} to write the machine's load and date information