slitaz-configs view sts/sts-session @ rev 207

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