#!/bin/sh # $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $ ########################################### #loads Compiz-Fusion if configured properly COMPIZFLAG=`cat /etc/compizflag.txt` if [ $COMPIZFLAG = "yes" ]; then compiz-manager & sleep 1 fi ########################################## #b_hp code for running the HotPup daemon: # Clean old desktop rm -f /root/Desktop/#*.desktop # Run daemon: /etc/hotpup/HotPup.sh perm & sleep 1 #e_hp . /etc/rc.d/PUPSTATE userresources=$HOME/.Xresources usermodmap=$HOME/.Xmodmap sysresources=/usr/X11R7/lib/X11/xinit/Xresources sysmodmap=/usr/X11R7/lib/X11/xinit/.Xmodmap # merge in defaults and keymaps if [ -f $sysresources ]; then xrdb -merge -nocpp $sysresources fi if [ -f $sysmodmap ]; then xmodmap $sysmodmap fi if [ -f $userresources ]; then xrdb -merge -nocpp $userresources fi if [ -f $usermodmap ]; then xmodmap $usermodmap fi if [ -f /usr/X11R6/bin/XF86_SVGA ];then #0.9.9 xmodmap -e "keycode 22 = BackSpace" xmodmap -e "keycode 107 = Delete" fi CURRENTWM="`cat /etc/windowmanager`" #if [ "$CURRENTWM" = "startxfce4" ];then # exec startxfce4 #fi if [ -f /usr/bin/compiz-manager ];then compiz-manager & sleep 1 fi #0.9.8 sync cut-buffers and clipboard. only useful for older apps #such as rxvt that use the cut-buffers... #/usr/bin/autocutsel & #...disadvantage of this is it creates a little square bottom-right of screen. #rxvt & if [ -e /tmp/videomode ];then #testing a video mode video-wizard & fi #v1.0.7 set by xrandrshell, part of xorg wizard... if [ -f /etc/xrandrindex ];then XRANDRINDEX="`cat /etc/xrandrindex`" [ ! "$XRANDRINDEX" = "0" ] && xrandr -s $XRANDRINDEX fi if [ -f /root/.xset.sh ];then #this is created by /usr/X11R6/bin/gxsetshell... eval "/root/.xset.sh" else #Xorg has it's own fontpath settings in /etc/X11/xorg.conf... if [ ! "`readlink /usr/X11R7/bin/X`" = "Xorg" ];then xset fp+ /usr/X11R7/lib/X11/fonts/Type1/ xset fp+ /usr/X11R7/lib/X11/fonts/TTF/ fi xset s 600 600 s blank fi #v1.0.7 also see /etc/rc.d/rc.local0 if [ -f /root/.fonts/fonts.dir ];then xset fp+ /root/.fonts/ fi xsetroot -cursor_name top_left_arrow #v2.0.0 /usr/sbin/delayedrun & #v2.01 hide cursor when not moving... (setup in /usr/sbin/input-wizard) if [ -f /etc/mousehide ];then IDLETIME="`cat /etc/mousehide | cut -f 1 -d ','`" [ ! "$IDLETIME" = "0" ] && unclutter -idle $IDLETIME & fi (sleep 12s && wbar -config /root/.wbar -above-desk -bpress -balfa 0 -zoomf 1.6) & (sleep 3s && aplay /usr/share/audio/Tiger2.wav) & #exec $CURRENTWM #v2.11 GuestToo suggested this improvement... which $CURRENTWM && exec $CURRENTWM [ -x $CURRENTWM ] && exec $CURRENTWM exec startxfce4 ###END###