slitaz-tools rev 105
We dont need multi-wallpapers now (Thank Pascal)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Mar 13 01:33:02 2008 +0100 (2008-03-13) |
parents | 4eaba614e892 |
children | d30840862d0c |
files | tinyutils/tazx |
line diff
1.1 --- a/tinyutils/tazx Wed Mar 12 21:08:51 2008 +0100 1.2 +++ b/tinyutils/tazx Thu Mar 13 01:33:02 2008 +0100 1.3 @@ -3,7 +3,7 @@ 1.4 # Tazx - Ncurses X configuration for SliTaz GNU/Linux using Dialog boxes. 1.5 # This tinyutils is part of slitaz-tools. 1.6 # 1.7 -# 20080306 <pankso@slitaz.org> - GNU gpl v3. 1.8 +# 20080313 <pankso@slitaz.org> - GNU gpl v3. 1.9 # 1.10 : ${DIALOG=dialog} 1.11 1.12 @@ -23,23 +23,6 @@ 1.13 # Tazx functions # 1.14 #################### 1.15 1.16 -# Change backgroud image if the 3/4 is not respected. 1.17 -change_jwm_background() 1.18 -{ 1.19 - if echo $NEW_SCREEN | grep -q '1280x1024'; then 1.20 - sed -i s/'1024x768.png'/'1280x1024.png'/ $JWM_CONFIG 1.21 - sed -i s/'1280x800.png'/'1280x1024.png'/ $JWM_CONFIG 1.22 - fi 1.23 - if echo $NEW_SCREEN | grep -q '1024x768'; then 1.24 - sed -i s/'1280x1024.png'/'1024x768.png'/ $JWM_CONFIG 1.25 - sed -i s/'1280x800.png'/'1024x768.png'/ $JWM_CONFIG 1.26 - fi 1.27 - if echo $NEW_SCREEN | grep -q '1280x800'; then 1.28 - sed -i s/'1024x768.png'/'1280x800.png'/ $JWM_CONFIG 1.29 - sed -i s/'1280x1024.png'/'1280x800.png'/ $JWM_CONFIG 1.30 - fi 1.31 -} 1.32 - 1.33 # Screen configuration dialog. 1.34 screen_config_dialog() 1.35 { 1.36 @@ -204,15 +187,17 @@ 1.37 if [ ! -f "$JWM_CONFIG" ]; then 1.38 cp /etc/jwm/system.jwmrc $JWM_CONFIG 1.39 fi 1.40 - change_jwm_background 1.41 - # In Live mode hacker JWM config dose not exist, this is 1.42 - # because tazx is executed at boot time by root. 1.43 + # In Live mode hacker/root JWM config dose not exist ans $HOME is 1.44 + # ot set, this is because tazx is executed by boot scripts. 1.45 if [ ! -f "/home/hacker/.jwmrc" ]; then 1.46 JWM_CONFIG=/home/hacker/.jwmrc 1.47 cp /etc/jwm/system.jwmrc $JWM_CONFIG 1.48 - change_jwm_background 1.49 chown hacker.hacker $JWM_CONFIG 1.50 fi 1.51 + if [ ! -f "/root/.jwmrc" ]; then 1.52 + JWM_CONFIG=/root/.jwmrc 1.53 + cp /etc/jwm/system.jwmrc $JWM_CONFIG 1.54 + fi 1.55 } 1.56 1.57 # Creat ~/.xsession to keep the configuration selected (used