sts annotate sts-session @ rev 1

Add sts and sts-session
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 26 22:06:19 2014 +0200 (2014-04-26)
parents
children 57eaff95ad15
rev   line source
pankso@1 1 #!/bin/sh
pankso@1 2 #
pankso@1 3 # Start SliTaz Tiny/Touch Screens desktop session
pankso@1 4 #
pankso@1 5
pankso@1 6 export STS_DESKTOP_WM="openbox"
pankso@1 7 export XDG_CACHE_HOME="$HOME/.cache"
pankso@1 8 export XDG_CONFIG_HOME="$HOME/.config"
pankso@1 9 export XDG_DATA_HOME="$HOME/.local/share"
pankso@1 10
pankso@1 11 data="/usr/share/slitaz/sts"
pankso@1 12 obconf="${XDG_CONFIG_HOME}/openbox"
pankso@1 13
pankso@1 14 # Ob sts-rc.xml
pankso@1 15 if [ ! -f "${XDG_CONFIG_HOME}/openbox/sts-rc.xml" ]; then
pankso@1 16 mkdir -p ${obconf}
pankso@1 17 cp ${data}/openbox/sts-rc.xml ${obconf}
pankso@1 18 fi
pankso@1 19
pankso@1 20 # Ob sts-autostart
pankso@1 21 if [ ! -x "${XDG_CONFIG_HOME}/openbox/sts-autostart" ]; then
pankso@1 22 cp ${data}/openbox/sts-autostart ${obconf}
pankso@1 23 fi
pankso@1 24
pankso@1 25 # LXpanel configs
pankso@1 26 if [ ! -d "${XDG_CONFIG_HOME}/openbox/lxpanel/sts" ]; then
pankso@1 27 cp -rf ${data}/lxpanel ${XDG_CONFIG_HOME}
pankso@1 28 fi
pankso@1 29
pankso@1 30 # Start Openbox
pankso@1 31 exec openbox --config-file ${obconf}/sts-rc.xml \
pankso@1 32 --startup ${obconf}/sts-autostart