xmonad/xmonad-start
Jens Petersen 3430944c9f fix gnome-session fail-whale dialog and setup gnomeConfig if available
- xmonad-start no longer execs xmonad not to confuse gnome-session
- xmonad-start now tries to setup a new xmonad.hs for GNOME desktop
  if running a xmonad-gnome session with xmonad-contrib installed
- improvements to README.fedora
2011-05-12 18:53:28 +09:00

25 lines
565 B
Bash

#!/bin/sh
if [ ! -d ~/.xmonad ]; then
# display the manpage if there is no user configuration
xterm -e man xmonad &
xterm -e less /usr/share/doc/xmonad*/README.fedora &
# 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
xmonad