#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
    xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
    xmodmap $usermodmap
fi

xset m 0 6

export G_BROKEN_FILENAMES=1
# xsetroot -cursor_name X_cursor
# esd &
# esd -nobeeps -d hw:1 &
# gdesklets start 2>&- >&- &
# xcompmgr -I 50 -o 0 -cfC &
 #rox --pinboard=PUN
  #oclock &
# `cat $HOME/.fehbg` &
 #icewm || exec xterm

# FVWM
# rxvt +vb -fn '-*-fixed-bold-r-normal--15-120-*-*-*-*-iso8859-1' -pixmap $HOME/.rxvt/gunnm.xpm -fg '#FF9042' -ls -C -name GameConsole -geometry 142x53+0+0 &
gnome-terminal --window-with-profile GameConsole --geometry 128x42+0+0 &
sleep 3
rm -f .fvwm_log
while [ "1" ]; do
  echo ">>> fvwm starts <<<" >> .fvwm_log
  fvwm >> .fvwm_log 2>&1
  echo ">>> fvwm stopped <<<" >> .fvwm_log
  sleep 4
  # killall gnome-terminal
done

# ICEWM & GNOME
# icewm
# gnome-session


# ION
# gnome-terminal --window-with-profile Gunnm &
# ion3

# xdesktopwaves -wc black -sc '#FF9042' &

# LARSWM
# LANG=fr larsclock &
# xload -geometry 96x48-0-0 &
# xbiff -file /home/tinou/Mail/mbox -geometry 48x48-100-0 &
# xclock -geometry 48x48-152-0 &
# larswm
