xmonad/xmonad-start

29 lines
565 B
Plaintext
Raw Normal View History

2009-05-06 21:19:58 +00:00
#!/bin/sh
# if no user configuration
2009-05-06 21:19:58 +00:00
if [ ! -d ~/.xmonad ]; then
# display the manpage
xterm -e man xmonad &
# 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
if [ -r ~/.xmonad/session ]; then
sh ~/.xmonad/session
fi
xmonad