fixed occurences of various old-style named commands in man pages and source

This commit is contained in:
garbeam 2005-12-12 16:16:23 +02:00
parent f53b8d61ef
commit 7475073c47
15 changed files with 137 additions and 137 deletions

View File

@ -13,7 +13,7 @@ WMII_CONFDIR=CONFPREFIX/wmii-3
OLD_PATH=$PATH OLD_PATH=$PATH
PATH=$HOME/.wmii-3:$WMII_CONFDIR:9PREFIX/bin:$PATH PATH=$HOME/.wmii-3:$WMII_CONFDIR:9PREFIX/bin:$PATH
WMII_IDENT=`{date -n}^'-'^$pid WMII_IDENT=`{date -n}^'-'^$pid
WMIR_SOCKET=/tmp/.ixp-$USER/wmifs-$WMII_IDENT WMIR_SOCKET=/tmp/.ixp-$USER/wmiifs-$WMII_IDENT
# start window manager and utilities: # start window manager and utilities:
mkdir -p /tmp/.ixp-$USER mkdir -p /tmp/.ixp-$USER

View File

@ -34,12 +34,12 @@ periodically print date and load average to the bar
welcome welcome
display a welcome message that contains the wmii tutorial display a welcome message that contains the wmii tutorial
.TP 2 .TP 2
wmirc wmiirc
configure wmii configure wmii
.SS Configuration .SS Configuration
If you feel the need to change the default configuration, then customize (as If you feel the need to change the default configuration, then customize (as
described above) the described above) the
.B wmirc .B wmiirc
action. This action is executed at the end of the action. This action is executed at the end of the
.BR wmii (1) .BR wmii (1)
script and does all the work of setting up the window manager, the key script and does all the work of setting up the window manager, the key
@ -70,7 +70,7 @@ PATH as it was before
.BR wmii (1) .BR wmii (1)
added the local and global action directory and the location where the 9base added the local and global action directory and the location where the 9base
tools reside. The tools reside. The
.B wmire .B wmiire
action resets PATH and removes OLD_PATH before executing a command. action resets PATH and removes OLD_PATH before executing a command.
.TP .TP
WMII_CONFDIR WMII_CONFDIR
@ -83,13 +83,13 @@ session. Part of the socket file names.
.TP .TP
WMIR_SOCKET WMIR_SOCKET
Socket file of Socket file of
.BR wmifs (1). .BR wmiifs (1).
Used by Used by
.BR wmir (1). .BR wmiir (1).
.SH SEE ALSO .SH SEE ALSO
.BR wmibar (1), .BR wmiibar (1),
.BR wmifs (1), .BR wmiifs (1),
.BR wmiiwm (1), .BR wmiiwm (1),
.BR wmikeys (1), .BR wmiikeys (1),
.BR wmimenu (1), .BR wmiimenu (1),
.BR wmir (1) .BR wmiir (1)

View File

@ -19,12 +19,12 @@ operating system and can be found in the Acme programming environment.
.B wmii .B wmii
consists of the core window manager itself and several utilities, such consists of the core window manager itself and several utilities, such
as as
.BR wmibar (1), .BR wmiibar (1),
.BR wmifs (1), .BR wmiifs (1),
.BR wmimenu (1), .BR wmiimenu (1),
.BR wmikeys (1), .BR wmiikeys (1),
.BR wmiplumb (1), .BR wmiplumb (1),
.BR wmir (1) .BR wmiir (1)
and and
.BR wmiwarp (1). .BR wmiwarp (1).
@ -133,7 +133,7 @@ frame or launching a terminal.
is customized through the rc script, which manipulates the namespace its is customized through the rc script, which manipulates the namespace its
fileserver provides to other processes. This namespace can be accessed fileserver provides to other processes. This namespace can be accessed
using the using the
.BR wmir (1) .BR wmiir (1)
utility. The default rc script uses this utility to setup wmii and its utility. The default rc script uses this utility to setup wmii and its
components. components.
.P .P
@ -143,13 +143,13 @@ process, like
.B wmii. .B wmii.
Such Such
namespaces can be bound (mounted) to userdefined namespaces using the namespaces can be bound (mounted) to userdefined namespaces using the
.BR wmifs (1) .BR wmiifs (1)
utility. In the default rc script the namespace provided by wmii, is utility. In the default rc script the namespace provided by wmii, is
bound to bound to
.FN /wmii .FN /wmii
.P .P
There are four actions provided by the There are four actions provided by the
.BR wmir (1) .BR wmiir (1)
utility to manipulate your namespace: utility to manipulate your namespace:
.BR create , .BR create ,
.BR remove , .BR remove ,
@ -161,11 +161,11 @@ and
.SH AUTHOR .SH AUTHOR
Copyright \(co 2003 - 2005 by Anselm R. Garbe <garbeam (at) gmail (dot) com> Copyright \(co 2003 - 2005 by Anselm R. Garbe <garbeam (at) gmail (dot) com>
.SH SEE ALSO .SH SEE ALSO
.BR wmibar (1), .BR wmiibar (1),
.BR wmifs (1), .BR wmiifs (1),
.BR wmimenu (1), .BR wmiimenu (1),
.BR wmikeys (1), .BR wmiikeys (1),
.BR wmiplumb (1), .BR wmiplumb (1),
.BR wmir (1), .BR wmiir (1),
.BR wmiwarp (1), .BR wmiwarp (1),
.BR wmii.rc (5). .BR wmii.rc (5).

View File

@ -1,43 +1,43 @@
.TH WMIBAR 1 wmii-3 .TH WMIBAR 1 wmii-3
.SH NAME .SH NAME
wmibar \- window manager improved 2 bar wmiibar \- window manager improved 2 bar
.SH SYNOPSIS .SH SYNOPSIS
.B wmibar .B wmiibar
.B \-s .B \-s
.I socketfile .I socketfile
.SH DESCRIPTION .SH DESCRIPTION
.SS Overview .SS Overview
.B wmibar .B wmiibar
is a generic and highly customizable bar for the X Window System, is a generic and highly customizable bar for the X Window System,
originally designed for originally designed for
.BR wmii (1). .BR wmii (1).
It supports arbitrary sized labels with arbitrary styles on a per label It supports arbitrary sized labels with arbitrary styles on a per label
basis and with button click events. basis and with button click events.
Like wmii, Like wmii,
.B wmibar .B wmiibar
also implements a socket-based fileserver, which is accessed to configure and also implements a socket-based fileserver, which is accessed to configure and
interoperate with other components. interoperate with other components.
.SS Options .SS Options
.TP .TP
.BI \-s " socketfile" .BI \-s " socketfile"
specifies the socketfile that specifies the socketfile that
.B wmibar .B wmiibar
should create. should create.
.TP .TP
.B \-v .B \-v
prints version information to stderr, then exits. prints version information to stderr, then exits.
.SS Customization .SS Customization
.B wmibar .B wmiibar
is customized through manipulating its filesystem namespace. is customized through manipulating its filesystem namespace.
In the default setup of In the default setup of
.BR wmii (1) .BR wmii (1)
the namespace of the namespace of
.B wmibar .B wmiibar
can be found in /bar. can be found in /bar.
.SH SEE ALSO .SH SEE ALSO
.BR wmifs (1), .BR wmiifs (1),
.BR wmii (1), .BR wmii (1),
.BR wmiiwm (1), .BR wmiiwm (1),
.BR wmikeys (1), .BR wmiikeys (1),
.BR wmimenu (1), .BR wmiimenu (1),
.BR wmir (1) .BR wmiir (1)

View File

@ -69,14 +69,14 @@ static Action acttbl[] = {
}; };
static char *version[] = { static char *version[] = {
"wmibar - window manager improved bar - " VERSION "\n" "wmiibar - window manager improved bar - " VERSION "\n"
" (C)opyright MMIV-MMV Anselm R. Garbe\n", 0 " (C)opyright MMIV-MMV Anselm R. Garbe\n", 0
}; };
static void usage() static void usage()
{ {
fprintf(stderr, "%s", fprintf(stderr, "%s",
"usage: wmibar -s <socket file> [-v]\n" "usage: wmiibar -s <socket file> [-v]\n"
" -s socket file\n" " -v version info\n"); " -s socket file\n" " -v version info\n");
exit(1); exit(1);
} }
@ -471,7 +471,7 @@ int main(int argc, char *argv[])
dpy = XOpenDisplay(0); dpy = XOpenDisplay(0);
if (!dpy) { if (!dpy) {
fprintf(stderr, "%s", "wmibar: cannot open display\n"); fprintf(stderr, "%s", "wmiibar: cannot open display\n");
exit(1); exit(1);
} }
XSetErrorHandler(dummy_error_handler); XSetErrorHandler(dummy_error_handler);
@ -482,7 +482,7 @@ int main(int argc, char *argv[])
/* init */ /* init */
if (!(file[B_CTL] = ixp_create(ixps, "/ctl"))) { if (!(file[B_CTL] = ixp_create(ixps, "/ctl"))) {
perror("wmibar: cannot connect IXP server"); perror("wmiibar: cannot connect IXP server");
exit(1); exit(1);
} }
file[B_CTL]->after_write = handle_after_write; file[B_CTL]->after_write = handle_after_write;

View File

@ -108,14 +108,14 @@ static Draw zero_draw = { 0 };
*/ */
static char *version[] = { static char *version[] = {
"wmibar - window manager improved bar - " VERSION "\n" "wmiibar - window manager improved bar - " VERSION "\n"
" (C)opyright MMIV-MMV Anselm R. Garbe\n", 0 " (C)opyright MMIV-MMV Anselm R. Garbe\n", 0
}; };
static void usage() static void usage()
{ {
fprintf(stderr, "%s %d", fprintf(stderr, "%s %d",
"usage: wmibar -s <socket file> [-v]\n" "usage: wmiibar -s <socket file> [-v]\n"
" -s socket file\n" " -v version info\n", " -s socket file\n" " -v version info\n",
NONE); NONE);
exit(1); exit(1);
@ -415,14 +415,14 @@ int main(int argc, char *argv[])
dpy = XOpenDisplay(0); dpy = XOpenDisplay(0);
if (!dpy) { if (!dpy) {
fprintf(stderr, "%s", "wmibar: cannot open display\n"); fprintf(stderr, "%s", "wmiibar: cannot open display\n");
exit(1); exit(1);
} }
XSetErrorHandler(dummy_error_handler); XSetErrorHandler(dummy_error_handler);
screen_num = DefaultScreen(dpy); screen_num = DefaultScreen(dpy);
if (!ixp_server_init(&srv, sockfile, funcs, freeconn)) { if (!ixp_server_init(&srv, sockfile, funcs, freeconn)) {
fprintf(stderr, "wmibar: fatal: %s\n", srv.errstr); fprintf(stderr, "wmiibar: fatal: %s\n", srv.errstr);
exit(1); exit(1);
} }
root_qid.type = IXP_QTDIR; root_qid.type = IXP_QTDIR;
@ -440,7 +440,7 @@ int main(int argc, char *argv[])
ixp_server_loop(&srv); ixp_server_loop(&srv);
if (srv.errstr) { if (srv.errstr) {
fprintf(stderr, "wmibar: fatal: %s\n", srv.errstr); fprintf(stderr, "wmiibar: fatal: %s\n", srv.errstr);
ixp_server_deinit(&srv); ixp_server_deinit(&srv);
exit(1); exit(1);
} }

View File

@ -1,13 +1,13 @@
.TH WMIFS 1 wmii-3 .TH WMIFS 1 wmii-3
.SH NAME .SH NAME
wmifs \- window manager improved 2 filesystem wmiifs \- window manager improved 2 filesystem
.SH SYNOPSIS .SH SYNOPSIS
.B wmifs .B wmiifs
.B \-s .B \-s
.I socketfile .I socketfile
.SH DESCRIPTION .SH DESCRIPTION
.SS Overview .SS Overview
.B wmifs .B wmiifs
is a socket-based fileserver which is used for binding other fileserver is a socket-based fileserver which is used for binding other fileserver
filesystems to a specific namespace. It routes filesystem accesses to filesystems to a specific namespace. It routes filesystem accesses to
the specific fileserver and behaves to the outside as one master the specific fileserver and behaves to the outside as one master
@ -16,23 +16,23 @@ filesystem.
.TP .TP
.BI \-s " socketfile" .BI \-s " socketfile"
specifies the socketfile that specifies the socketfile that
.B wmifs .B wmiifs
should create. should create.
.TP .TP
.B \-v .B \-v
prints version information to stderr, then exits. prints version information to stderr, then exits.
.SS Customization .SS Customization
.B wmifs .B wmiifs
is customized through manipulating its filesystem namespace. is customized through manipulating its filesystem namespace.
In the default setup of In the default setup of
.BR wmii (1) .BR wmii (1)
the namespace of the namespace of
.B wmifs .B wmiifs
can be found in /. can be found in /.
.SH SEE ALSO .SH SEE ALSO
.BR wmibar (1), .BR wmiibar (1),
.BR wmii (1), .BR wmii (1),
.BR wmiiwm (1), .BR wmiiwm (1),
.BR wmikeys (1), .BR wmiikeys (1),
.BR wmimenu (1), .BR wmiimenu (1),
.BR wmir (1) .BR wmiir (1)

View File

@ -47,14 +47,14 @@ static Action acttbl[] = {
}; };
static char *version[] = { static char *version[] = {
"wmifs - window manager improved filesystem - " VERSION "\n" "wmiifs - window manager improved filesystem - " VERSION "\n"
" (C)opyright MMV Anselm R. Garbe\n", 0 " (C)opyright MMV Anselm R. Garbe\n", 0
}; };
static void usage() static void usage()
{ {
fprintf(stderr, fprintf(stderr,
"usage: wmifs -s <socket file> [-v]\n" "usage: wmiifs -s <socket file> [-v]\n"
" -s socket file\n" " -v version info\n"); " -s socket file\n" " -v version info\n");
exit(1); exit(1);
} }
@ -66,7 +66,7 @@ static void iter_unbind(void *bind, void *aux)
b->mount->content = 0; b->mount->content = 0;
ixp_remove(ixps, b->prefix); ixp_remove(ixps, b->prefix);
if (ixps->errstr) if (ixps->errstr)
fprintf(stderr, "wmifs: error on unbind %s: %s\n", b->prefix, ixps->errstr); fprintf(stderr, "wmiifs: error on unbind %s: %s\n", b->prefix, ixps->errstr);
} }
} }
@ -97,7 +97,7 @@ static void unbind(void *obj, char *arg)
Bind *b = cext_find_item(&bindings, arg, comp_bindpath); Bind *b = cext_find_item(&bindings, arg, comp_bindpath);
if (!b) { if (!b) {
fprintf(stderr, "wmifs: unbind: '%s' no such path\n", arg); fprintf(stderr, "wmiifs: unbind: '%s' no such path\n", arg);
return; return;
} }
do_unbind(b); do_unbind(b);
@ -114,20 +114,20 @@ static void bind(void *obj, char *arg)
cext_strlcpy(cmd, arg, sizeof(cmd)); cext_strlcpy(cmd, arg, sizeof(cmd));
sfile = strchr(cmd, ' '); sfile = strchr(cmd, ' ');
if (!sfile) { if (!sfile) {
fprintf(stderr, "wmifs: bind: '%s' without socket argument, ignoring\n", arg); fprintf(stderr, "wmiifs: bind: '%s' without socket argument, ignoring\n", arg);
return; /* shortcut with empty argument */ return; /* shortcut with empty argument */
} }
*sfile = 0; *sfile = 0;
sfile++; sfile++;
if (*sfile == 0) { if (*sfile == 0) {
fprintf(stderr, "wmifs: bind: '%s' without socket argument, ignoring\n", arg); fprintf(stderr, "wmiifs: bind: '%s' without socket argument, ignoring\n", arg);
return; /* shortcut with empty argument */ return; /* shortcut with empty argument */
} }
b = cext_emallocz(sizeof(Bind)); b = cext_emallocz(sizeof(Bind));
b->client = init_ixp_client(sfile); b->client = init_ixp_client(sfile);
if (!b->client) { if (!b->client) {
fprintf(stderr, "wmifs: bind: cannot connect to server '%s', ignoring\n", sfile); fprintf(stderr, "wmiifs: bind: cannot connect to server '%s', ignoring\n", sfile);
free(b); free(b);
return; return;
} }
@ -303,18 +303,18 @@ static void check_event(Connection * e)
XEvent ev; XEvent ev;
while (XPending(dpy)) { while (XPending(dpy)) {
/* /*
* wmifs isn't interested in any X events, so just drop them * wmiifs isn't interested in any X events, so just drop them
* all * all
*/ */
XNextEvent(dpy, &ev); XNextEvent(dpy, &ev);
} }
/* why check them? because X won't kill wmifs when X dies */ /* why check them? because X won't kill wmiifs when X dies */
} }
static void run() static void run()
{ {
if (!(files[F_CTL] = ixp_create(ixps, "/ctl"))) { if (!(files[F_CTL] = ixp_create(ixps, "/ctl"))) {
perror("wmifs: cannot connect IXP server"); perror("wmiifs: cannot connect IXP server");
exit(1); exit(1);
} }
files[F_CTL]->after_write = handle_after_write; files[F_CTL]->after_write = handle_after_write;
@ -359,13 +359,13 @@ int main(int argc, char *argv[])
if (!getenv("HOME")) { if (!getenv("HOME")) {
fprintf(stderr, "%s", fprintf(stderr, "%s",
"wmifs: $HOME environment variable is not set\n"); "wmiifs: $HOME environment variable is not set\n");
usage(); usage();
} }
/* just for the case X crashes/gets quit */ /* just for the case X crashes/gets quit */
dpy = XOpenDisplay(0); dpy = XOpenDisplay(0);
if (!dpy) { if (!dpy) {
fprintf(stderr, "%s", "wmifs: cannot open display\n"); fprintf(stderr, "%s", "wmiifs: cannot open display\n");
exit(1); exit(1);
} }
ixps = wmii_setup_server(sockfile); ixps = wmii_setup_server(sockfile);

View File

@ -1,13 +1,13 @@
.TH WMIKEYS 1 wmii-3 .TH WMIKEYS 1 wmii-3
.SH NAME .SH NAME
wmikeys \- window manager improved 2 keys wmiikeys \- window manager improved 2 keys
.SH SYNOPSIS .SH SYNOPSIS
.B wmikeys .B wmiikeys
.B \-s .B \-s
.I socketfile .I socketfile
.SH DESCRIPTION .SH DESCRIPTION
.SS Overview .SS Overview
.B wmikeys .B wmiikeys
is a generic, highly customizable, and efficient key grabbing utility for the is a generic, highly customizable, and efficient key grabbing utility for the
X Window System, originally designed for X Window System, originally designed for
.BR wmii (1). .BR wmii (1).
@ -16,30 +16,30 @@ with equivalent features like the ratpoison keyboard control allows.
It supports arbitrary, user defined shortcuts which are bound to It supports arbitrary, user defined shortcuts which are bound to
arbitrary actions. arbitrary actions.
Like wmii, Like wmii,
.B wmikeys .B wmiikeys
also implements a socket-based fileserver, which is accessed to configure and also implements a socket-based fileserver, which is accessed to configure and
interact with other components. interact with other components.
.SS Options .SS Options
.TP .TP
.BI \-s " socketfile" .BI \-s " socketfile"
specifies the socketfile that specifies the socketfile that
.B wmikeys .B wmiikeys
should create. should create.
.TP .TP
.B \-v .B \-v
prints version information to stderr, then exits. prints version information to stderr, then exits.
.SS Customization .SS Customization
.B wmikeys .B wmiikeys
is customized through manipulating its filesystem namespace. is customized through manipulating its filesystem namespace.
In the default setup of In the default setup of
.BR wmii (1) .BR wmii (1)
the namespace of the namespace of
.B wmikeys .B wmiikeys
can be found in /keys. can be found in /keys.
.SH SEE ALSO .SH SEE ALSO
.BR wmibar (1), .BR wmiibar (1),
.BR wmifs (1), .BR wmiifs (1),
.BR wmii (1), .BR wmii (1),
.BR wmiiwm (1), .BR wmiiwm (1),
.BR wmimenu (1), .BR wmiimenu (1),
.BR wmir (1) .BR wmiir (1)

View File

@ -65,15 +65,15 @@ static Action acttbl[] = {
}; };
static char *version[] = { static char *version[] = {
"wmikeys - window manager improved keys - " VERSION "\n" "wmiikeys - window manager improved keys - " VERSION "\n"
" (C)opyright MMIV-MMV Anselm R. Garbe\n", 0 " (C)opyright MMIV-MMV Anselm R. Garbe\n", 0
}; };
static void usage() static void usage()
{ {
fprintf(stderr, "%s", fprintf(stderr, "%s",
"usage: wmikeys [-s <socket file>] [-v]\n" "usage: wmiikeys [-s <socket file>] [-v]\n"
" -s socket file (default: /tmp/.ixp-$USER/wmikeys-$WMII_IDENT)\n" " -s socket file (default: /tmp/.ixp-$USER/wmiikeys-$WMII_IDENT)\n"
" -v version info\n"); " -v version info\n");
exit(1); exit(1);
} }
@ -419,7 +419,7 @@ int main(int argc, char *argv[])
dpy = XOpenDisplay(0); dpy = XOpenDisplay(0);
if (!dpy) { if (!dpy) {
fprintf(stderr, "%s", "wmikeys: cannot open display\n"); fprintf(stderr, "%s", "wmiikeys: cannot open display\n");
exit(1); exit(1);
} }
XSetErrorHandler(dummy_error_handler); XSetErrorHandler(dummy_error_handler);
@ -429,7 +429,7 @@ int main(int argc, char *argv[])
ixps = wmii_setup_server(sockfile); ixps = wmii_setup_server(sockfile);
if (!(files[K_CTL] = ixp_create(ixps, "/ctl"))) { if (!(files[K_CTL] = ixp_create(ixps, "/ctl"))) {
perror("wmikeys: cannot connect IXP server"); perror("wmiikeys: cannot connect IXP server");
exit(1); exit(1);
} }
files[K_CTL]->after_write = handle_after_write; files[K_CTL]->after_write = handle_after_write;

View File

@ -1,42 +1,42 @@
.TH WMIMENU 1 wmii-3 .TH WMIMENU 1 wmii-3
.SH NAME .SH NAME
wmimenu \- window manager improved 2 menu wmiimenu \- window manager improved 2 menu
.SH SYNOPSIS .SH SYNOPSIS
.B wmimenu .B wmiimenu
.B \-s .B \-s
.I socketfile .I socketfile
.SH DESCRIPTION .SH DESCRIPTION
.SS Overview .SS Overview
.B wmimenu .B wmiimenu
is a generic, highly customizable, and efficient menu for the X Window System, is a generic, highly customizable, and efficient menu for the X Window System,
originally designed for originally designed for
.BR wmii (1). .BR wmii (1).
It supports arbitrary, user defined menu contents, which get executed. It supports arbitrary, user defined menu contents, which get executed.
Like wmii, Like wmii,
.B wmimenu .B wmiimenu
also implements a socket-based fileserver, which is accessed to configure and also implements a socket-based fileserver, which is accessed to configure and
interoperate with other components. interoperate with other components.
.SS Options .SS Options
.TP .TP
.BI \-s " socketfile" .BI \-s " socketfile"
specifies the socketfile that specifies the socketfile that
.B wmimenu .B wmiimenu
should create. should create.
.TP .TP
.B \-v .B \-v
prints version information to stderr, then exits. prints version information to stderr, then exits.
.SS Customization .SS Customization
.B wmimenu .B wmiimenu
is customized through manipulating its filesystem namespace. is customized through manipulating its filesystem namespace.
In the default setup of In the default setup of
.BR wmii (1) .BR wmii (1)
the namespace of the namespace of
.B wmimenu .B wmiimenu
can be found in /menu. can be found in /menu.
.SH SEE ALSO .SH SEE ALSO
.BR wmibar (1), .BR wmiibar (1),
.BR wmifs (1), .BR wmiifs (1),
.BR wmii (1), .BR wmii (1),
.BR wmiiwm (1), .BR wmiiwm (1),
.BR wmikeys (1), .BR wmiikeys (1),
.BR wmir (1) .BR wmiir (1)

View File

@ -73,15 +73,15 @@ static Action acttbl[2] = {
}; };
static char *version[] = { static char *version[] = {
"wmimenu - window manager improved menu - " VERSION "\n" "wmiimenu - window manager improved menu - " VERSION "\n"
" (C)opyright MMIV-MMV Anselm R. Garbe\n", 0 " (C)opyright MMIV-MMV Anselm R. Garbe\n", 0
}; };
static void usage() static void usage()
{ {
fprintf(stderr, "%s", fprintf(stderr, "%s",
"usage: wmimenu [-s <socket file>] [-r] [-v]\n" "usage: wmiimenu [-s <socket file>] [-r] [-v]\n"
" -s socket file (default: /tmp/.ixp-$USER/wmimenu-%s-%s)\n" " -s socket file (default: /tmp/.ixp-$USER/wmiimenu-%s-%s)\n"
" -v version info\n"); " -v version info\n");
exit(1); exit(1);
} }
@ -552,7 +552,7 @@ int main(int argc, char *argv[])
dpy = XOpenDisplay(0); dpy = XOpenDisplay(0);
if (!dpy) { if (!dpy) {
fprintf(stderr, "%s", "wmimenu: cannot open display\n"); fprintf(stderr, "%s", "wmiimenu: cannot open display\n");
exit(1); exit(1);
} }
screen_num = DefaultScreen(dpy); screen_num = DefaultScreen(dpy);
@ -561,7 +561,7 @@ int main(int argc, char *argv[])
/* init */ /* init */
if (!(files[M_CTL] = ixp_create(ixps, "/ctl"))) { if (!(files[M_CTL] = ixp_create(ixps, "/ctl"))) {
perror("wmimenu: cannot connect IXP server"); perror("wmiimenu: cannot connect IXP server");
exit(1); exit(1);
} }
files[M_CTL]->after_write = handle_after_write; files[M_CTL]->after_write = handle_after_write;

View File

@ -1,38 +1,38 @@
.TH WMIR 1 wmii-3 .TH WMIR 1 wmii-3
.SH NAME .SH NAME
wmir \- window manager improved 2 remote wmiir \- window manager improved 2 remote
.SH SYNOPSIS .SH SYNOPSIS
.B wmir .B wmiir
.RB [ \-s .RB [ \-s
.IR socketfile ] .IR socketfile ]
.I action .I action
.I action_arg .I action_arg
[...] [...]
.br .br
.B wmir .B wmiir
.RB [ \-s .RB [ \-s
.IR socketfile ] .IR socketfile ]
.B \-f .B \-f
.br .br
.B wmir .B wmiir
.B \-v .B \-v
.SH DESCRIPTION .SH DESCRIPTION
.SS Overview .SS Overview
.B wmir .B wmiir
is a client to access wmi* fileservers for the command line and is a client to access wmi* fileservers for the command line and
scripts. It can be used to configure wmii(1). scripts. It can be used to configure wmii(1).
.SS Options .SS Options
.TP .TP
.BI \-s " socketfile" .BI \-s " socketfile"
lets you specify the socketfile to which lets you specify the socketfile to which
.B wmir .B wmiir
a connection will be established. If the environment variable a connection will be established. If the environment variable
.B WMIR_SOCKET .B WMIR_SOCKET
is set and points to a socket file, wmir will use that file, if this is set and points to a socket file, wmiir will use that file, if this
option is not supplied. option is not supplied.
.TP .TP
.B \-f .B \-f
reads from stdin, useful for interactive wmir sessions or for reads from stdin, useful for interactive wmiir sessions or for
scripts that write/read a bunch of data, because this speeds things up scripts that write/read a bunch of data, because this speeds things up
due to missing process creation/destruction, ie., a hack. due to missing process creation/destruction, ie., a hack.
.TP .TP
@ -58,14 +58,14 @@ WMIR_SOCKET
See above. See above.
.SH EXAMPLES .SH EXAMPLES
.TP .TP
$ wmir read / $ wmiir read /
This gives you an idea about what the wmii filesystem currently looks like. This gives you an idea about what the wmii filesystem currently looks like.
.TP .TP
$ wmir write /wm/ctl quit $ wmiir write /wm/ctl quit
.SH SEE ALSO .SH SEE ALSO
.BR wmibar (1), .BR wmiibar (1),
.BR wmifs (1), .BR wmiifs (1),
.BR wmii (1), .BR wmii (1),
.BR wmiiwm (1), .BR wmiiwm (1),
.BR wmikeys (1), .BR wmiikeys (1),
.BR wmimenu (1) .BR wmiimenu (1)

View File

@ -13,14 +13,14 @@ static IXPClient *c;
static int exit_code = 0; static int exit_code = 0;
static char *version[] = { static char *version[] = {
"wmir - window manager improved remote - " VERSION "\n" "wmiir - window manager improved remote - " VERSION "\n"
" (C)opyright MMIV-MMV Anselm R. Garbe\n", 0 " (C)opyright MMIV-MMV Anselm R. Garbe\n", 0
}; };
static void usage() static void usage()
{ {
fprintf(stderr, "%s", fprintf(stderr, "%s",
"usage: wmir [-s <socket file>] [-v] <action> <action_arg> [...]\n" "usage: wmiir [-s <socket file>] [-v] <action> <action_arg> [...]\n"
" -s socket file (default: $WMIR_SOCKET)\n" " -s socket file (default: $WMIR_SOCKET)\n"
" -f read actions from stdin\n" " -f read actions from stdin\n"
" -v version info\n" " -v version info\n"
@ -49,7 +49,7 @@ static void perform(char *action, char *file, char *content)
if (crt) { if (crt) {
c->create(c, file); c->create(c, file);
if (c->errstr) { if (c->errstr) {
fprintf(stderr, "wmir: error: create %s: %s\n", file, fprintf(stderr, "wmiir: error: create %s: %s\n", file,
c->errstr); c->errstr);
exit_code = 1; exit_code = 1;
return; return;
@ -59,13 +59,13 @@ static void perform(char *action, char *file, char *content)
return; return;
fd = c->open(c, file); fd = c->open(c, file);
if (c->errstr) { if (c->errstr) {
fprintf(stderr, "wmir: error: open %s: %s\n", file, c->errstr); fprintf(stderr, "wmiir: error: open %s: %s\n", file, c->errstr);
exit_code = 1; exit_code = 1;
return; return;
} }
c->write(c, fd, content, strlen(content)); c->write(c, fd, content, strlen(content));
if (c->errstr) { if (c->errstr) {
fprintf(stderr, "wmir: error: write %s: %s\n", file, fprintf(stderr, "wmiir: error: write %s: %s\n", file,
c->errstr); c->errstr);
exit_code = 1; exit_code = 1;
if (!strncmp(c->errstr, DEAD_SERVER, strlen(DEAD_SERVER) + 1)) if (!strncmp(c->errstr, DEAD_SERVER, strlen(DEAD_SERVER) + 1))
@ -76,14 +76,14 @@ static void perform(char *action, char *file, char *content)
return; return;
fd = c->open(c, file); fd = c->open(c, file);
if (c->errstr) { if (c->errstr) {
fprintf(stderr, "wmir: error: open %s: %s\n", file, c->errstr); fprintf(stderr, "wmiir: error: open %s: %s\n", file, c->errstr);
exit_code = 1; exit_code = 1;
return; return;
} }
do { do {
out_len = c->read(c, fd, output, 2048); out_len = c->read(c, fd, output, 2048);
if (c->errstr) { if (c->errstr) {
fprintf(stderr, "wmir: error: read %s: %s\n", file, fprintf(stderr, "wmiir: error: read %s: %s\n", file,
c->errstr); c->errstr);
exit_code = 1; exit_code = 1;
if (!strncmp if (!strncmp
@ -101,7 +101,7 @@ static void perform(char *action, char *file, char *content)
return; return;
c->remove(c, file); c->remove(c, file);
if (c->errstr) { if (c->errstr) {
fprintf(stderr, "wmir: error: remove %s: %s\n", file, fprintf(stderr, "wmiir: error: remove %s: %s\n", file,
c->errstr); c->errstr);
exit_code = 1; exit_code = 1;
return; return;
@ -110,7 +110,7 @@ static void perform(char *action, char *file, char *content)
if (fd != -1) { if (fd != -1) {
c->close(c, fd); c->close(c, fd);
if (c->errstr) { if (c->errstr) {
fprintf(stderr, "wmir: error: close %s: %s\n", file, fprintf(stderr, "wmiir: error: close %s: %s\n", file,
c->errstr); c->errstr);
exit_code = 1; exit_code = 1;
return; return;
@ -149,7 +149,7 @@ int main(int argc, char *argv[])
} }
} }
if ((argc <= 1) || (!read_stdin && (i + 1) >= argc)) { if ((argc <= 1) || (!read_stdin && (i + 1) >= argc)) {
fprintf(stderr, "%s", "wmir: arguments: "); fprintf(stderr, "%s", "wmiir: arguments: ");
for (i = 1; i < argc; i++) for (i = 1; i < argc; i++)
fprintf(stderr, "%s, ", argv[i]); fprintf(stderr, "%s, ", argv[i]);
fprintf(stderr, "%s", "\n"); fprintf(stderr, "%s", "\n");
@ -157,12 +157,12 @@ int main(int argc, char *argv[])
} }
if (!sockfile) { if (!sockfile) {
fprintf(stderr, "%s", fprintf(stderr, "%s",
"wmir: error: WMIR_SOCKET environment not set\n"); "wmiir: error: WMIR_SOCKET environment not set\n");
usage(); usage();
} }
/* open socket */ /* open socket */
if (!(c = init_ixp_client(sockfile))) { if (!(c = init_ixp_client(sockfile))) {
fprintf(stderr, "wmir: cannot connect to server '%s'\n", sockfile); fprintf(stderr, "wmiir: cannot connect to server '%s'\n", sockfile);
exit(1); exit(1);
} }
if (read_stdin) { if (read_stdin) {
@ -210,7 +210,7 @@ int main(int argc, char *argv[])
} }
perform(action, file, content); perform(action, file, content);
if (c->errstr) if (c->errstr)
fprintf(stderr, "wmir: error: read %s: %s\n", file, fprintf(stderr, "wmiir: error: read %s: %s\n", file,
c->errstr); c->errstr);
} }
} else { } else {

View File

@ -31,14 +31,14 @@ static Command cmds[] = {
static IXPClient c = { 0 }; static IXPClient c = { 0 };
static char *version[] = { static char *version[] = {
"wmir - window manager improved remote - " VERSION "\n" "wmiir - window manager improved remote - " VERSION "\n"
" (C)opyright MMIV-MMV Anselm R. Garbe\n", 0 " (C)opyright MMIV-MMV Anselm R. Garbe\n", 0
}; };
static void usage() static void usage()
{ {
fprintf(stderr, "%s", fprintf(stderr, "%s",
"usage: wmir [-s <socket file>] [-v] <command> <args> [...]\n" "usage: wmiir [-s <socket file>] [-v] <command> <args> [...]\n"
" -s socket file (default: $WMIR_SOCKET)\n" " -s socket file (default: $WMIR_SOCKET)\n"
" -f read commands from stdin\n" " -f read commands from stdin\n"
" -v version info\n" " -v version info\n"
@ -62,7 +62,7 @@ static u32 write_data(u32 fid, u8 * data, u32 count)
if (ixp_client_write if (ixp_client_write
(&c, fid, i * c.fcall.iounit, len, (&c, fid, i * c.fcall.iounit, len,
&data[i * c.fcall.iounit]) != count) { &data[i * c.fcall.iounit]) != count) {
fprintf(stderr, "wmir: cannot write file: %s\n", c.errstr); fprintf(stderr, "wmiir: cannot write file: %s\n", c.errstr);
return 0; return 0;
} }
} }
@ -78,14 +78,14 @@ static int xcreate(char **argv)
/* walk to bottom-most directory */ /* walk to bottom-most directory */
*p = 0; *p = 0;
if (!ixp_client_walk(&c, fid, argv[0])) { if (!ixp_client_walk(&c, fid, argv[0])) {
fprintf(stderr, "wmir: cannot walk to %s: %s\n", argv[0], fprintf(stderr, "wmiir: cannot walk to %s: %s\n", argv[0],
c.errstr); c.errstr);
return 1; return 1;
} }
/* create */ /* create */
p++; p++;
if (!ixp_client_create(&c, fid, p, (u32) 0xff, IXP_OWRITE)) { if (!ixp_client_create(&c, fid, p, (u32) 0xff, IXP_OWRITE)) {
fprintf(stderr, "wmir: cannot create file: %s\n", c.errstr); fprintf(stderr, "wmiir: cannot create file: %s\n", c.errstr);
return 1; return 1;
} }
write_data(fid, (u8 *) argv[1], strlen(argv[1])); write_data(fid, (u8 *) argv[1], strlen(argv[1]));
@ -97,7 +97,7 @@ static int xwrite(char **argv)
/* open */ /* open */
u32 fid = c.root_fid << 2; u32 fid = c.root_fid << 2;
if (!ixp_client_open(&c, fid, argv[0], IXP_OWRITE)) { if (!ixp_client_open(&c, fid, argv[0], IXP_OWRITE)) {
fprintf(stderr, "wmir: cannot open file: %s\n", c.errstr); fprintf(stderr, "wmiir: cannot open file: %s\n", c.errstr);
return 1; return 1;
} }
write_data(fid, (u8 *) argv[1], strlen(argv[1])); write_data(fid, (u8 *) argv[1], strlen(argv[1]));
@ -129,14 +129,14 @@ static int xread(char **argv)
/* open */ /* open */
if (!ixp_client_open(&c, fid, argv[0], IXP_OREAD)) { if (!ixp_client_open(&c, fid, argv[0], IXP_OREAD)) {
fprintf(stderr, "wmir: cannot open file: %s\n", c.errstr); fprintf(stderr, "wmiir: cannot open file: %s\n", c.errstr);
return 1; return 1;
} }
is_directory = !c.fcall.nwqid || (c.fcall.qid.type == IXP_QTDIR); is_directory = !c.fcall.nwqid || (c.fcall.qid.type == IXP_QTDIR);
/* read */ /* read */
if (!(count = ixp_client_read(&c, fid, 0, result, IXP_MAX_MSG)) if (!(count = ixp_client_read(&c, fid, 0, result, IXP_MAX_MSG))
&& c.errstr) { && c.errstr) {
fprintf(stderr, "wmir: cannot read file: %s\n", c.errstr); fprintf(stderr, "wmiir: cannot read file: %s\n", c.errstr);
return 1; return 1;
} }
if (count) { if (count) {
@ -158,7 +158,7 @@ static int xremove(char **argv)
/* remove */ /* remove */
fid = c.root_fid << 2; fid = c.root_fid << 2;
if (!ixp_client_remove(&c, fid, argv[0])) { if (!ixp_client_remove(&c, fid, argv[0])) {
fprintf(stderr, "wmir: cannot remove file: %s\n", c.errstr); fprintf(stderr, "wmiir: cannot remove file: %s\n", c.errstr);
return 1; return 1;
} }
return 0; return 0;
@ -208,7 +208,7 @@ int main(int argc, char *argv[])
} }
} }
if ((argc <= 1) || (!read_stdin && (i + 1) >= argc)) { if ((argc <= 1) || (!read_stdin && (i + 1) >= argc)) {
fprintf(stderr, "%s", "wmir: arguments: "); fprintf(stderr, "%s", "wmiir: arguments: ");
for (i = 1; i < argc; i++) for (i = 1; i < argc; i++)
fprintf(stderr, "%s, ", argv[i]); fprintf(stderr, "%s, ", argv[i]);
fprintf(stderr, "%s", "\n"); fprintf(stderr, "%s", "\n");
@ -216,12 +216,12 @@ int main(int argc, char *argv[])
} }
if (!sockfile) { if (!sockfile) {
fprintf(stderr, "%s", fprintf(stderr, "%s",
"wmir: error: WMIR_SOCKET environment not set\n"); "wmiir: error: WMIR_SOCKET environment not set\n");
usage(); usage();
} }
/* open socket */ /* open socket */
if (!ixp_client_init(&c, sockfile)) { if (!ixp_client_init(&c, sockfile)) {
fprintf(stderr, "wmir: %s\n", c.errstr); fprintf(stderr, "wmiir: %s\n", c.errstr);
exit(1); exit(1);
} }
/* wether perform directly or read from stdin */ /* wether perform directly or read from stdin */