Converted wmiiloop.1 to pseudo-TeX.

This commit is contained in:
Kris Maglione 2007-05-25 01:38:05 -04:00
parent 3b84423e32
commit 763292d528
4 changed files with 115 additions and 58 deletions

View File

@ -1,5 +1,5 @@
'\" t
.\" Manual page created with latex2man on Fri May 25 01:19:10 EDT 2007
.\" Manual page created with latex2man on Fri May 25 01:36:45 EDT 2007
.\" NOTE: This file is generated, DO NOT EDIT.
.de Vb
.ft CW
@ -10,9 +10,11 @@
.fi
..
.TH "WMII\-VERSION" "1" "25 May 2007" "" ""
.TH "WMII" "1" "25 May 2007" "" ""
.SH NAME
wmii\-VERSION
.PP
.SH SYNOPSIS
wmii

View File

@ -1,4 +1,7 @@
\begin{Name}{1}{wmii-VERSION}{Kris Maglione}{}{wmii - window manager improved, improved}
\begin{Name}{1}{wmii}{Kris Maglione}{}{wmii - window manager improved, improved}
\Prog{wmii}-VERSION
\end{Name}
\section{SYNOPSIS}
\Prog{wmii} \oOptArg{-a}{<address>} \oOptArg{-c}{<wmiirc>} \\
\Prog{wmii} \Opt{-v}
@ -184,5 +187,3 @@ thus can be used in actions:
\section{SEE ALSO}
\Cmd{dmenu}{1}, \Cmd{wmiir}{1}
\end{Name}

View File

@ -1,63 +1,75 @@
.TH WMIIR 1 wmii\-VERSION
'\" t
.\" Manual page created with latex2man on Fri May 25 01:36:45 EDT 2007
.\" NOTE: This file is generated, DO NOT EDIT.
.de Vb
.ft CW
.nf
..
.de Ve
.ft R
.fi
..
.TH "WMIILOOP" "1" "25 May 2007" "" ""
.SH NAME
wmiiloop \(em wmii event loop processor
wmiiloop\-VERSION
.PP
.SH SYNOPSIS
.B cat
.I events
|
.B wmiiloop
|
.B sh
.br
eval
"$(wmiiloop
<events)"
.PP
.SH DESCRIPTION
.SS Overview
.B wmiiloop
is an awk script which preprocesses
.BR sh (1)
syntax to simplify writing a wmii event loop.
.br
.B eventloop
associates lines begining with
.IR Event ", " Action ", or " Key
(henceforth known as
.BR $keyword ),
followed by arbitrary text (henceforth known as
.BR $args ),
with functions which call any indented lines which follow.
In the function names, all non-alphanumeric characters in $args
are replaced with underscores (_). The functions are named
$keyword'_'$args.
Any variables in the unintented lines are interpolated by the shell.
Additionally, each declaration's
.B $args
are assigned to a variable named
.BR $keyword's' .
In this case, no transliteration occurs. For instance, the following
declaration:
.B Key
.IB $MODKEY -j
.br
.PP
wmiiloop
is an awk and sh script which preprocesses \fIsh\fP(1)
syntax
to simplify writing a wmii event loop.
.PP
wmiiloop
associates lines begining with \fIEvent\fP,
\fIAction\fP,
or
\fIKey\fP
(henceforth known as \fB$keyword\fP),
followed by arbitrary
text (henceforth known as \fB$args\fP),
with functions which call any
indented lines which follow. In the function names, all non\-alphanumeric
characters in \fB$args\fP
are replaced with underscores (_). The
functions are named \fB$keyword\fP\&'_\&'\fB$args\fP\&.
.PP
Any variables in the unintented lines are interpolated by the shell.
.PP
Additionally, each declaration\&'s \fB$args\fP
are assigned to a variable
named \fB$keyword\fP\&'s\&'\&.
In this case, no transliteration occurs. For
instance, the following declaration:
.PP
.Vb
Key $MODKEY\-j
echo Got $@
yields (assuming
.I $MODKEY
is set to
.IR Mod1 ):
Keys=" $Keys Mod1-j"
.br
.Ve
yields (assuming \fI$MODKEY\fP
is set to \fIMod1\fP):
.PP
.Vb
Keys=" $Keys Mod1\-j"
Mod1_j() {
.br
echo Got $@
.br
}
.Ve
.PP
.SH SEE ALSO
.BR wmii (1),
.BR wmiir (1),
.B PREFIX/etc/wmiirc
\fIwmii\fP(1),
\fIwmii\fP(1)\&.
\fIwmiir\fP(1),
PREFX/etc/wmiirc
.PP
.\" NOTE: This file is generated, DO NOT EDIT.

42
man/wmiiloop.tex Normal file
View File

@ -0,0 +1,42 @@
\begin{Name}{1}{wmiiloop}{Kris Maglione}{}{wmiir}
\Prog{wmiiloop}-VERSION
\end{Name}
\section{Synopsis}
\Prog{eval} "\$(\Prog{wmiiloop} <\File{events})"
\section{Description}
\Prog{wmiiloop} is an awk and sh script which preprocesses \Cmd{sh}{1} syntax
to simplify writing a wmii event loop.
\Prog{wmiiloop} associates lines begining with \emph{Event}, \emph{Action}, or
\emph{Key} (henceforth known as \textbf{\$keyword}), followed by arbitrary
text (henceforth known as \textbf{\$args}), with functions which call any
indented lines which follow. In the function names, all non-alphanumeric
characters in \textbf{\$args} are replaced with underscores (\_). The
functions are named \textbf{\$keyword}'_'\textbf{\$args}.
Any variables in the unintented lines are interpolated by the shell.
Additionally, each declaration's \textbf{\$args} are assigned to a variable
named \textbf{\$keyword}'s'. In this case, no transliteration occurs. For
instance, the following declaration:
\begin{verbatim}
Key $MODKEY-j
echo Got $@
\end{verbatim}
yields (assuming \emph{\$MODKEY} is set to \emph{Mod1}):
\begin{verbatim}
Keys=" $Keys Mod1-j"
Mod1_j() {
echo Got $@
}
\end{verbatim}
\section{SEE ALSO}
\Cmd{wmii}{1}, \Cmd{wmii}{1}. \Cmd{wmiir}{1},
\File{PREFX/etc/wmiirc}