sts diff sts-session @ rev 13

Put all config we can in $HOME/.config/sts, have an icon to show/hide a virtual keyboard
author Christophe Lincoln <pankso@slitaz.org>
date Mon Apr 28 00:06:11 2014 +0200 (2014-04-28)
parents 57eaff95ad15
children 6188e4a86b44
line diff
     1.1 --- a/sts-session	Sun Apr 27 23:13:45 2014 +0200
     1.2 +++ b/sts-session	Mon Apr 28 00:06:11 2014 +0200
     1.3 @@ -4,26 +4,28 @@
     1.4  #
     1.5  
     1.6  export STS_DESKTOP_WM="openbox"
     1.7 +export STS_DESKTOP_ID="$$"
     1.8  export XDG_CACHE_HOME="$HOME/.cache"
     1.9  export XDG_CONFIG_HOME="$HOME/.config"
    1.10  export XDG_DATA_HOME="$HOME/.local/share"
    1.11  
    1.12  data="/usr/share/slitaz/sts"
    1.13 -obconf="${XDG_CONFIG_HOME}/openbox"
    1.14 +sts="${XDG_CONFIG_HOME}/sts"
    1.15  
    1.16  # Ob sts-rc.xml
    1.17 -if [ ! -f "${XDG_CONFIG_HOME}/openbox/sts-rc.xml" ]; then
    1.18 -	mkdir -p ${obconf}
    1.19 -	cp ${data}/openbox/sts-rc.xml ${obconf}
    1.20 +if [ ! -f "${XDG_CONFIG_HOME}/sts/rc.xml" ]; then
    1.21 +	mkdir -p ${sts}
    1.22 +	cp ${data}/openbox/rc.xml ${sts}
    1.23  fi
    1.24  
    1.25  # Ob sts-autostart
    1.26 -if [ ! -x "${XDG_CONFIG_HOME}/openbox/sts-autostart" ]; then
    1.27 -	cp ${data}/openbox/sts-autostart ${obconf}
    1.28 +if [ ! -x "${XDG_CONFIG_HOME}/sts/autostart" ]; then
    1.29 +	cp ${data}/openbox/autostart ${sts}
    1.30 +	chmod +x ${sts}/autostart
    1.31  fi
    1.32  
    1.33  # LXpanel configs
    1.34 -if [ ! -d "${XDG_CONFIG_HOME}/openbox/lxpanel/sts" ]; then
    1.35 +if [ ! -d "${XDG_CONFIG_HOME}/lxpanel/sts" ]; then
    1.36  	cp -rf ${data}/lxpanel ${XDG_CONFIG_HOME}
    1.37  fi
    1.38  
    1.39 @@ -33,5 +35,4 @@
    1.40  fi
    1.41  
    1.42  # Start Openbox
    1.43 -exec openbox --config-file ${obconf}/sts-rc.xml \
    1.44 -	--startup ${obconf}/sts-autostart
    1.45 +exec openbox --config-file ${sts}/rc.xml --startup ${sts}/autostart