mirror of https://github.com/0intro/wmii
18 lines
428 B
Bash
18 lines
428 B
Bash
#!/bin/sh
|
|
# start wmiiwm and wait for its termination
|
|
|
|
test $# -eq 0 || exec wmiiwm "$@"
|
|
wmiiwm -c || exit 1
|
|
|
|
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 &
|
|
wmiiwmpid=$!
|
|
mkdir $HOME/.wmii-3 2>/dev/null && welcome &
|
|
sleep 1
|
|
wmiirc &
|
|
wait $wmiiwmpid
|