#!/bin/sh # # xinitrc file for XFce 3 startxfce script # Some distro needs to allow even localhost to use the display # Uncomment this if you experience "Can't open display" when running # programs from xfce. BEWARE this is considered as a vulnerability ! # # xhost +$HOSTNAME # if [ "`whoami`" = root ]; then xsetroot -solid "#B20003" else xsetroot -solid "#21449C" fi # Unselect the following line to get a BIG mouse cursor in Xfce : # xset +fp "/usr/X11R6/share/xfce/cursors" # Set up additionnal fonts that ship with Xfce (Change id38121117) xset fp+ "/usr/X11R6/share/xfce/fonts" # Start-up stuff from ~/Desktop/Autostart directory, if it exists # (as it seems to be the new standard) if [ -d "$HOME/Desktop/Autostart" ]; then for i in `ls -1 ${HOME}/Desktop/Autostart/ 2>/dev/null`; do if [ -x $HOME/Desktop/Autostart/$i ]; then $HOME/Desktop/Autostart/$i & fi done fi # Uncomment this if you have xmodmap loading additional keycodes. # set the XKEYS variable to the correct file # XKEYS=/etc/X11/xinit/.Xmodmap # if [ -f $XKEYS ]; then # xmodmap $XKEYS # fi # Uncomment this if you run gkrellm. See http://www.gkrellm.net for # more info. It will launch gkrellm if it's not already running # if [ -z $(grep gkrellm ${HOME}/.xfce/xfwm-session) ]; then # exec `which gkrellm` & # fi # Launch xscreensaver (if available) xscreensaver -no-splash -lock-mode & # Finally, launch XFce window manager exec xfwm if [ "`whoami`" = root ]; then xsetroot -solid "#B20003" else xsetroot -solid "#21449C" fi