slitaz-tools rev 122

Paving the road for an Openbox flavor (change WM in ~/.xinitrc)
author Christophe Lincoln <pankso@slitaz.org>
date Fri Mar 21 11:10:15 2008 +0100 (2008-03-21)
parents 830089ee6fcf
children aec454cfd619
files tinyutils/tazx
line diff
     1.1 --- a/tinyutils/tazx	Fri Mar 21 02:36:33 2008 +0100
     1.2 +++ b/tinyutils/tazx	Fri Mar 21 11:10:15 2008 +0100
     1.3 @@ -199,8 +199,8 @@
     1.4  		exec jwm
     1.5  		;;
     1.6  	*)
     1.7 -		# LXpanel by default with JWM (use less memory started from here rater
     1.8 -		# than from StartupCommand).
     1.9 +		# LXpanel by default with JWM (use less memory started 
    1.10 +		# from here rater than from StartupCommand).
    1.11  		if [ "$WM" = "jwm" ]; then
    1.12  			lxpanel &
    1.13  		fi
    1.14 @@ -208,6 +208,9 @@
    1.15  		;;
    1.16  esac
    1.17  EOF
    1.18 +	# Set default WM.
    1.19 +	RES=`grep ^WM=[e-o] $FILE`
    1.20 +	sed -i s/"$RES"/"WM=$WM"/ $FILE
    1.21  }
    1.22  
    1.23  # ~/.xinitrc for slim login.
    1.24 @@ -223,9 +226,6 @@
    1.25  		xinitrc_sample
    1.26  		chown hacker.hacker $FILE
    1.27  	fi
    1.28 -	# Set default WM.
    1.29 -	RES=`grep ^WM=[e-o] $HOME/.xinitrc`
    1.30 -	sed -i s/"$RES"/"WM=$WM"/ $HOME/.xinitrc
    1.31  }
    1.32  
    1.33  # Copy a JWM system config if any present in user home.