mirror of https://github.com/0intro/wmii
19 lines
647 B
Bash
19 lines
647 B
Bash
#!/bin/sh
|
|
# start wmiiwm and wait for its termination
|
|
|
|
export WMII_CONFPATH="$HOME/.wmii-CONFVERSION:CONFPREFIX/wmii-CONFVERSION"
|
|
export WMII_NS_DIR="/tmp/ns.$USER.${DISPLAY%.0}"
|
|
export WMII_ADDRESS="unix!$WMII_NS_DIR/wmii"
|
|
|
|
if [ -x /usr/local/plan9/bin/rc ]; then
|
|
WMIIRC=`PATH="$WMII_CONFPATH:$PATH" which rc.wmii`
|
|
elif [ -x "$PLAN9/bin/rc" ]; then
|
|
WMIIRC="$PLAN9/bin/rc `PATH="$WMII_CONFPATH:$PATH" which rc.wmii`"
|
|
else
|
|
WMIIRC=`PATH="$WMII_CONFPATH:$PATH" which wmiirc`
|
|
fi
|
|
|
|
mkdir -m 700 "$WMII_NS_DIR" 2>/dev/null
|
|
mkdir $HOME/.wmii-CONFVERSION 2>/dev/null && CONFPREFIX/wmii-CONFVERSION/welcome &
|
|
exec wmiiwm -a $WMII_ADDRESS -r "$WMIIRC" $@
|