using exec wmiirc instead of the pidfile hack

This commit is contained in:
Anselm R. Garbe 2006-03-10 21:51:11 +01:00
parent 8f32caeea8
commit f53fdddf8a

View File

@ -1,8 +1,6 @@
#!/bin/sh
# configure wmii
pidfile=/tmp/ns.$USER.$DISPLAY/wmiircpid
xwrite() {
file="$1"; shift
echo -n "$@" | wmiir write "$file"
@ -18,9 +16,6 @@ proglist() {
done | sort | uniq
}
test -f $pidfile && kill `cat $pidfile` 2>/dev/null
echo $$ >$pidfile
MODKEY=Alt
WMII_FONT='fixed' export WMII_FONT
WMII_NORMCOLORS='#222222 #eeeeee #666666' export WMII_NORMCOLORS
@ -126,7 +121,7 @@ do
$MODKEY-Control-c)
xwrite /ws/sel/sel/ctl kill;;
$MODKEY-Control-w,y)
wmiirc &;;
exec wmiirc;;
$MODKEY-Control-q,y)
xwrite /ctl quit;;
$MODKEY-Control-p)
@ -168,4 +163,3 @@ do
esac;;
esac
done &
echo $! >$pidfile