wok-current view compiz/stuff/compiz-session @ rev 19217
Up compiz* (0.8.12)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Fri Jun 17 15:09:10 2016 +0300 (2016-06-17) |
parents | 41794be0da15 |
children |
line source
1 #!/bin/sh
2 #
3 # Start Compiz 3D Desktop on SliTaz. We use some LXDE componment
4 # and check compiz config files exist.
5 #
7 export XDG_CONFIG_HOME="$HOME/.config"
8 export XDG_CACHE_HOME="$HOME/.cache"
9 export XDG_CURRENT_DESKTOP=LXDE
10 export XDG_MENU_PREFIX="lxde-"
11 export DESKTOP_SESSION=LXDE
13 # Start DBUS session.
14 if [ ! "$DBUS_SESSION_BUS_ADDRESS" ]; then
15 dbus-launch --sh-syntax --exit-with-session &
16 fi
18 # Compiz configuration files from slitaz-configs.
19 if [ ! -f "$XDG_CONFIG_HOME/compiz/compizconfig/config" ]; then
20 mkdir -p $XDG_CONFIG_HOME/compiz/compizconfig
21 cp -r /usr/share/slitaz/compiz/* $XDG_CONFIG_HOME/compiz/compizconfig
22 sed 's|imgpng|scale;scaleaddon;animation|; s|s0_|as_|; \
23 s|composite;opengl|ccp;commands;text;png|; s|as_sens|s0_sens|; \
24 s|decor;|decoration;|;s|\[decor|\[decoration|; s|as_zo|s0_zo|; \
25 s|as_acc|s0_acc|;s|as_top|s0_top|;s|as_bot|s0_bot|;s|as_sky|s0_sky|; \
26 /opacity/s/as/s0/; s|Shift>Button1|Shift>Button3|' \
27 -i $XDG_CONFIG_HOME/compiz/compizconfig/Default.ini
28 echo "
29 [animation]
30 s0_all_random = true
32 [resize]
33 as_mode = 2
35 [commands]
36 as_run_command0_key = <Shift>Print
37 as_command0 = mtpaint -s
38 as_run_command1_key = <Alt>F1
39 as_command1 = lxpanelctl menu
40 as_run_command2_key = <Alt>F2
41 as_command2 = xterm
43 [winrules]
44 !s0_maximize_match = (name=Navigator) | name=mtpaint | class=TazWeb
45 !| role = browser
46 " >> $XDG_CONFIG_HOME/compiz/compizconfig/Default.ini
47 fi
49 # Start some LXDE componment.
50 if [ ! -d $XDG_CONFIG_HOME/lxsession/Compiz ]; then
51 cp -a $XDG_CONFIG_HOME/lxsession/LXDE \
52 $XDG_CONFIG_HOME/lxsession/Compiz
53 sed -i 's|window_manager=.*|window_manager=compiz-startwm|' \
54 $XDG_CONFIG_HOME/lxsession/Compiz/desktop.conf
55 fi
57 exec lxsession -e LXDE -s Compiz
59 #hsetroot -solid '#012345'