2009-05-06 21:19:58 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2011-05-17 09:19:12 +00:00
|
|
|
# if no user configuration
|
2009-05-06 21:19:58 +00:00
|
|
|
if [ ! -d ~/.xmonad ]; then
|
2011-05-17 09:19:12 +00:00
|
|
|
# display the manpage
|
2011-06-22 08:02:51 +00:00
|
|
|
xterm -e man xmonad &
|
2011-05-12 09:53:28 +00:00
|
|
|
|
|
|
|
# try to configure for a gnome session
|
|
|
|
if [ "$DESKTOP_SESSION" = "xmonad-gnome" ]; then
|
|
|
|
if ghc-pkg latest xmonad-contrib >/dev/null; then
|
|
|
|
mkdir ~/.xmonad
|
|
|
|
cat > ~/.xmonad/xmonad.hs <<EOF
|
|
|
|
import XMonad
|
|
|
|
import XMonad.Config.Gnome
|
|
|
|
|
|
|
|
main = xmonad gnomeConfig
|
|
|
|
EOF
|
|
|
|
else
|
|
|
|
echo "xmonad-start: install ghc-xmonad-contrib-devel for GNOME support"
|
|
|
|
fi
|
|
|
|
fi
|
2009-05-06 21:19:58 +00:00
|
|
|
fi
|
|
|
|
|
2011-05-17 09:19:12 +00:00
|
|
|
if [ -r ~/.xmonad/session ]; then
|
|
|
|
sh ~/.xmonad/session
|
|
|
|
fi
|
|
|
|
|
2011-05-12 09:53:28 +00:00
|
|
|
xmonad
|