All pastes #197013 Raw Edit

mmoreno80

public text v1 · immutable
·published 2006-10-11 00:55 UTC
rendered paste body
#!/bin/sh
## ~/.xinitrc: Execute a window manager.

## Some variables
NUMLOCKX="numlockx"
XSET="xset m 10/4 4"
XSCREENSAVER="xscreensaver -no-splash"
XPENGUINS="xpenguins -n 4 -t Worms"
XBIFF="xbiff -update 10 -bg red -fg white -geometry 60x60-0-32"
RNDBG="rndbg.py -t 1 -v m -f /home/matt/.backgrounds/BCK.lst"
BG="xv -rmode 3 -quit -root +noresetroot"
XMMS="xmms"
XCLOCK="xclock -geometry 250x34+388+-1"
MC="xterm -g 81x36+12+96 +sb -bg White -iconic -e mc"
SU="xterm -g 81x36-13-67 -iconic -e su"
XTERM="xterm -g 81x46+152-21 -iconic"
KDESKTOP="kdesktop"
BACKGROUND="/home/matt/.backgrounds/056.jpg"
ICONS="xtdesk"
CLOCK="wmCalClock -24"
MOUNTAPP="mount.app"
MIXER="wmmixer"
# This are the default.

if [ x"$BACKGROUND" == x ]; then
    BACKGROUND=~/draws/DRW001.jpg
fi
SETBG="$BG $BACKGROUND"

if [ x"$WINDOW_MANAGER" == x ]; then
    WINDOW_MANAGER=wm2
fi

if [ -a ~/.xmodmap ]; then
   xmodmap ~/.xmodmap
else
   if [ -a /etc/X11/Xmodmap ]; then
       xmodmap /etc/X11/Xmodmap
   fi
fi

$NUMLOCKX &
$XSET &
$XSCREENSAVER &
$ICONS &
$CLOCK &
$MOUNTAPP &
$MIXER &
exec "$WINDOW_MANAGER"

echo "xinitrc:error: Can't exec $WINDOW_MANAGER"
exit 1