mirror of
https://github.com/0intro/wmii
synced 2025-02-28 04:04:02 +03:00
26 lines
514 B
Bash
26 lines
514 B
Bash
#!/bin/sh
|
|
# start wmiiwm and wait for its termination
|
|
|
|
wmiiwm -c || exit 1
|
|
|
|
t=
|
|
if test $# -eq 2 && test "X$1" = X-t
|
|
then
|
|
t="-t $2"
|
|
elif test $# -ne 0
|
|
then
|
|
echo "usage: wmii [-t tag]" >&2
|
|
exit 1
|
|
fi
|
|
|
|
OLD_PATH=$PATH export OLD_PATH
|
|
PATH=$HOME/.wmii-3:CONFPREFIX/wmii-3:$PATH export PATH
|
|
WMII_ADDRESS=unix!/tmp/ns.$USER.$DISPLAY/wmii export WMII_ADDRESS
|
|
|
|
mkdir -m 700 /tmp/ns.$USER.$DISPLAY 2>/dev/null
|
|
wmiiwm -a $WMII_ADDRESS $t &
|
|
wmiiwmpid=$!
|
|
mkdir $HOME/.wmii-3 2>/dev/null && welcome &
|
|
wmiirc &
|
|
wait $wmiiwmpid
|