mirror of
https://github.com/0intro/wmii
synced 2024-11-22 13:52:17 +03:00
76 lines
1.4 KiB
Groff
76 lines
1.4 KiB
Groff
'\" 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\-VERSION
|
|
.PP
|
|
.SH SYNOPSIS
|
|
|
|
eval
|
|
"$(wmiiloop
|
|
<events)"
|
|
.PP
|
|
.SH DESCRIPTION
|
|
|
|
.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 $@
|
|
.Ve
|
|
yields (assuming \fI$MODKEY\fP
|
|
is set to \fIMod1\fP):
|
|
.PP
|
|
.Vb
|
|
Keys=" $Keys Mod1\-j"
|
|
Mod1_j() {
|
|
echo Got $@
|
|
}
|
|
.Ve
|
|
.PP
|
|
.SH SEE ALSO
|
|
|
|
\fIwmii\fP(1),
|
|
\fIwmii\fP(1)\&.
|
|
\fIwmiir\fP(1),
|
|
PREFX/etc/wmiirc
|
|
.PP
|
|
.\" NOTE: This file is generated, DO NOT EDIT.
|