From: Michael Stapelberg Date: Sun, 25 Jan 2009 22:30:57 +0000 (+0100) Subject: Update manpage, remove unnecessary ifdefs X-Git-Tag: 1.0~19 X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3status;a=commitdiff_plain;h=695217130751a2a224fb0f559472a71f2e6a00f7 Update manpage, remove unnecessary ifdefs --- diff --git a/wmiistatus.1 b/wmiistatus.1 index f22d583..cf599e5 100644 --- a/wmiistatus.1 +++ b/wmiistatus.1 @@ -8,7 +8,7 @@ .fi .. -.TH wmiistatus 1 "OCTOBER 2008" Linux "User Manuals" +.TH wmiistatus 1 "FEBRUARY 2009" Linux "User Manuals" .SH NAME wmiistatus \- fill wmii's status bar @@ -20,7 +20,7 @@ wmiistatus \- fill wmii's status bar .SH DESCRIPTION .B wmiistatus -is a small program for filling wmii's status bar via its 9P pseudo filesystem. It is designed to be very efficient by issuing a very small number of systemcalls (as the bar should be updated every second or at your specified interval). +is a small program (around 500 SLOC) for filling wmii's status bar via its 9P pseudo filesystem. It is designed to be very efficient by issuing a very small number of systemcalls (as the bar should be updated every second or at your specified interval). .SH CONFIGURATION .TP @@ -61,7 +61,7 @@ Get current speed of the ethernet interface using the same mechanism as ethtool. .TP .B normcolors -Specifies the colors for background/border in the same format (html colorcodes) as wmii's configuration, that is #222222 #333333 for example. +Specifies the colors for background/border in the same format (html colorcodes) as wmii's configuration (just the last two values), that is #222222 #333333 for example. Text color will be determined automatically (red/green/#888888), depending on context. .TP .B interval @@ -88,7 +88,7 @@ System-wide configuration file. .Ve .SH MOUNTING WMII'S PSEUDO FILESYSTEM -As of now (October 2008, Linux 2.6.27) you can mount wmii's 9P pseudo filesystem using: +As of now (February 2009, Linux 2.6.28) you can mount wmii's 9P pseudo filesystem using: .PP .Vb 3 mount -t 9p -o rw,trans=unix,uname=michael,dfltuid=1000,dfltgid=50,name=michael,noauto,noextend /tmp/ns.michael.:0/wmii /mnt/wmii @@ -96,6 +96,9 @@ mount -t 9p -o rw,trans=unix,uname=michael,dfltuid=1000,dfltgid=50,name=michael, modprobe 9pnet_fd .Ve +.SH BUGS +Sometimes, wmiistatus crashes when the wlan interface vanishes (killswitch). I haven't yet found the bug, as it is not reproducible. If you can reproduce this, please fix it and send me a patch. + .SH SEE ALSO .BR strftime (3), .BR date (1), @@ -103,3 +106,6 @@ modprobe 9pnet_fd .SH AUTHOR Michael Stapelberg + +.SH WEBSITE +See http://michael.stapelberg.de/wmiistatus for the newest release. diff --git a/wmiistatus.c b/wmiistatus.c index a2c626a..ac1f778 100644 --- a/wmiistatus.c +++ b/wmiistatus.c @@ -62,9 +62,7 @@ #include #endif -#define _IS_WMIISTATUS_C #include "wmiistatus.h" -#undef _IS_WMIISTATUS_C /* socket file descriptor for general purposes */ static int general_socket;