wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit 46f5cecee4b00ca5eb82731f35332419e7719b9a
parent 45e132648194665532f9e9598baf45c01b49f956
Author: Anselm R. Garbe <garbeam@wmii.de>
Date:   Mon, 13 Mar 2006 10:13:57 +0100

applied gualteri's status mechanism, removed pidfile handling


Diffstat:
rc/status | 7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/rc/status b/rc/status @@ -1,20 +1,15 @@ #!/bin/sh # periodically print date and load average to the bar -pidfile=/tmp/ns.$USER.$DISPLAY/statuspid +wmiir remove /bar/status && sleep 2 xwrite() { file="$1"; shift echo -n "$@" | wmiir write "$file" } -# race condition alert -test -f $pidfile && kill `cat $pidfile` 2>/dev/null -echo $$ >$pidfile -sleep 1 wmiir create /bar/status xwrite /bar/status/colors $WMII_NORMCOLORS -trap "wmiir remove /bar/status 2>/dev/null; exit" 15 while xwrite /bar/status/data `date` `uptime | sed 's/.*://; s/,//g'` do