wmii

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

commit b2f0b883e3d15aef8c306474064cbbc6f9ce7f03
parent 99fe00d264f4ac751f8e713362385633834cad8d
Author: Kris Maglione <jg@suckless.org>
Date:   Fri, 23 Feb 2007 13:55:11 -0500

Remove rc/(status rehash quit). They're taken care of in wmiirc, now.

Diffstat:
main.c | 4++--
rc/quit | 2--
rc/rehash | 8--------
rc/status | 15---------------
4 files changed, 2 insertions(+), 27 deletions(-)

diff --git a/main.c b/main.c @@ -219,11 +219,11 @@ init_traps() { int fd[2]; if(pipe(fd) != 0) - fatal("Can't pipe(): %s\n", strerror(errno));; + fatal("Can't pipe(): %s\n", strerror(errno)); switch(fork()) { case -1: - fatal("Can't fork(): %s\n", strerror(errno));; + fatal("Can't fork(): %s\n", strerror(errno)); default: close(fd[0]); sa.sa_flags = 0; diff --git a/rc/quit b/rc/quit @@ -1,2 +0,0 @@ -#!/bin/sh -echo -n quit | wmiir write /ctl diff --git a/rc/rehash b/rc/rehash @@ -1,8 +0,0 @@ -#!/bin/sh -proglist() { - ls -lL "$@" 2>/dev/null | awk 'NF>2 && $1 ~ /^[^d].*x/ {print $NF}' | sort | uniq -} - -proglist `echo "$PATH" | sed 'y/:/ /'` >$PROGS_FILE.new - -mv $PROGS_FILE.new $PROGS_FILE diff --git a/rc/status b/rc/status @@ -1,15 +0,0 @@ -#!/bin/sh -# periodically print date and load average to the bar - -status() { - echo -n `uptime | sed 's/.*://; s/,//g'` - echo -n ' | ' - echo -n `date` -} - -wmiir remove /rbar/status 2>/dev/null && sleep 2 -echo $WMII_SELCOLORS | wmiir create /rbar/status -while wmiir xwrite /rbar/status "$WMII_NORMCOLORS" `status` -do - sleep 1 -done