2010-05-11 14:03:46 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
userresources=$HOME/.Xresources
|
|
|
|
usermodmap=$HOME/.Xmodmap
|
2010-05-11 19:43:47 +02:00
|
|
|
sysresources=/usr/lib/X11/xinit/.Xresources
|
|
|
|
sysmodmap=/usr/lib/X11/xinit/.Xmodmap
|
2010-05-11 14:03:46 +02:00
|
|
|
|
|
|
|
# merge in defaults and keymaps
|
|
|
|
|
|
|
|
if [ -f $sysresources ]; then
|
2010-05-11 19:43:47 +02:00
|
|
|
/usr/bin/xrdb -merge $sysresources
|
2010-05-11 14:03:46 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f $sysmodmap ]; then
|
2010-05-11 19:43:47 +02:00
|
|
|
/usr/bin/xmodmap $sysmodmap
|
2010-05-11 14:03:46 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f $userresources ]; then
|
2010-05-11 19:43:47 +02:00
|
|
|
/usr/bin/xrdb -merge $userresources
|
2010-05-11 14:03:46 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f $usermodmap ]; then
|
2010-05-11 19:43:47 +02:00
|
|
|
/usr/bin/xmodmap $usermodmap
|
2010-05-11 14:03:46 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Create default user directory & populate it if not already existent
|
|
|
|
if [ ! -d $HOME/.icewm ]; then
|
|
|
|
mkdir $HOME/.icewm
|
|
|
|
for FILE in keys menu preferences toolbar winoptions;
|
|
|
|
do cat /usr/share/icewm/$FILE > $HOME/.icewm/$FILE;
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Start IceWM
|
|
|
|
icewmbg &
|
|
|
|
icewmtray &
|
|
|
|
exec icewm-session
|
|
|
|
|