wok-6.x annotate compiz/stuff/compiz-session @ rev 14701
monitorix: update /etc/monitorix.conf (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jun 07 18:28:08 2013 +0200 (2013-06-07) |
parents | |
children | 41794be0da15 |
rev | line source |
---|---|
pankso@12405 | 1 #!/bin/sh |
pankso@12405 | 2 # |
pankso@12405 | 3 # Start Compiz 3D Desktop on SliTaz. We use some LXDE componment |
pankso@12405 | 4 # and check compiz config files exist. |
pankso@12405 | 5 # |
pankso@12405 | 6 |
pankso@12405 | 7 export XDG_CONFIG_HOME="$HOME/.config" |
pankso@12405 | 8 export XDG_CACHE_HOME="$HOME/.cache" |
pankso@12405 | 9 export XDG_CURRENT_DESKTOP=LXDE |
pankso@12405 | 10 export DESKTOP_SESSION=compiz |
pankso@12405 | 11 |
pankso@12405 | 12 # Start DBUS session. |
pankso@12405 | 13 if [ ! "$DBUS_SESSION_BUS_ADDRESS" ]; then |
pankso@12405 | 14 dbus-launch --sh-syntax --exit-with-session & |
pankso@12405 | 15 fi |
pankso@12405 | 16 |
pankso@12405 | 17 # Compiz configuration files from slitaz-configs. |
pankso@12405 | 18 if [ ! -f "$XDG_CONFIG_HOME/compiz-1/compizconfig/config" ]; then |
pankso@12405 | 19 mkdir -p $XDG_CONFIG_HOME/compiz-1/compizconfig |
pankso@12405 | 20 cp -r /usr/share/slitaz/compiz/* $XDG_CONFIG_HOME/compiz-1/compizconfig |
pankso@12405 | 21 fi |
pankso@12405 | 22 |
pankso@12405 | 23 # PCmanFM config file. NOTE: will change with new PCmanFM |
pankso@12405 | 24 if [ ! -f "$XDG_CONFIG_HOME/pcmanfm/main" ]; then |
pankso@12405 | 25 mkdir -p $XDG_CONFIG_HOME/pcmanfm |
pankso@12405 | 26 cp /usr/share/slitaz/lxde/pcmanfm.main \ |
pankso@12405 | 27 $XDG_CONFIG_HOME/pcmanfm/main |
pankso@12405 | 28 fi |
pankso@12405 | 29 |
pankso@12405 | 30 # Start some LXDE componment. |
pankso@12405 | 31 lxpanel -p slitaz & |
pankso@12405 | 32 pcmanfm -d & |
pankso@12405 | 33 emerald & |
pankso@12405 | 34 exec compiz ccp --indirect-rendering |