xmonad/xmonad-start
Jens Petersen c88390e4c5 use -no-user-package-conf when compiling xmonad.hs; no longer show README; cabal2spec-0.23.2
- ignore user configured packages when recompiling user xmonad.hs
  to avoid linking errors (#713035)
- don't display README.fedora initially on startup anymore
- drop the ghc-xmonad requires from xmonad-core
- update to cabal2spec-0.23.2
2011-06-22 17:02:51 +09:00

29 lines
565 B
Bash

#!/bin/sh
# if no user configuration
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
fi
if [ -r ~/.xmonad/session ]; then
sh ~/.xmonad/session
fi
xmonad