wok-6.x diff compiz/stuff/compiz-session @ rev 19539
Up sc-im (0.4.0)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sat Dec 03 21:08:29 2016 +0000 (2016-12-03) |
parents | 41794be0da15 |
children |
line diff
1.1 --- a/compiz/stuff/compiz-session Sat Feb 22 16:55:06 2014 +0100 1.2 +++ b/compiz/stuff/compiz-session Sat Dec 03 21:08:29 2016 +0000 1.3 @@ -7,7 +7,8 @@ 1.4 export XDG_CONFIG_HOME="$HOME/.config" 1.5 export XDG_CACHE_HOME="$HOME/.cache" 1.6 export XDG_CURRENT_DESKTOP=LXDE 1.7 -export DESKTOP_SESSION=compiz 1.8 +export XDG_MENU_PREFIX="lxde-" 1.9 +export DESKTOP_SESSION=LXDE 1.10 1.11 # Start DBUS session. 1.12 if [ ! "$DBUS_SESSION_BUS_ADDRESS" ]; then 1.13 @@ -15,20 +16,44 @@ 1.14 fi 1.15 1.16 # Compiz configuration files from slitaz-configs. 1.17 -if [ ! -f "$XDG_CONFIG_HOME/compiz-1/compizconfig/config" ]; then 1.18 - mkdir -p $XDG_CONFIG_HOME/compiz-1/compizconfig 1.19 - cp -r /usr/share/slitaz/compiz/* $XDG_CONFIG_HOME/compiz-1/compizconfig 1.20 +if [ ! -f "$XDG_CONFIG_HOME/compiz/compizconfig/config" ]; then 1.21 + mkdir -p $XDG_CONFIG_HOME/compiz/compizconfig 1.22 + cp -r /usr/share/slitaz/compiz/* $XDG_CONFIG_HOME/compiz/compizconfig 1.23 + sed 's|imgpng|scale;scaleaddon;animation|; s|s0_|as_|; \ 1.24 + s|composite;opengl|ccp;commands;text;png|; s|as_sens|s0_sens|; \ 1.25 + s|decor;|decoration;|;s|\[decor|\[decoration|; s|as_zo|s0_zo|; \ 1.26 + s|as_acc|s0_acc|;s|as_top|s0_top|;s|as_bot|s0_bot|;s|as_sky|s0_sky|; \ 1.27 + /opacity/s/as/s0/; s|Shift>Button1|Shift>Button3|' \ 1.28 + -i $XDG_CONFIG_HOME/compiz/compizconfig/Default.ini 1.29 + echo " 1.30 +[animation] 1.31 +s0_all_random = true 1.32 + 1.33 +[resize] 1.34 +as_mode = 2 1.35 + 1.36 +[commands] 1.37 +as_run_command0_key = <Shift>Print 1.38 +as_command0 = mtpaint -s 1.39 +as_run_command1_key = <Alt>F1 1.40 +as_command1 = lxpanelctl menu 1.41 +as_run_command2_key = <Alt>F2 1.42 +as_command2 = xterm 1.43 + 1.44 +[winrules] 1.45 +!s0_maximize_match = (name=Navigator) | name=mtpaint | class=TazWeb 1.46 +!| role = browser 1.47 +" >> $XDG_CONFIG_HOME/compiz/compizconfig/Default.ini 1.48 fi 1.49 1.50 -# PCmanFM config file. NOTE: We dont need a user config file 1.51 -#if [ ! -f "$XDG_CONFIG_HOME/pcmanfm/main" ]; then 1.52 - #mkdir -p $XDG_CONFIG_HOME/pcmanfm/default 1.53 - #cp /etc/xdg/pcmanfm/default/pcmanfm.conf \ 1.54 - #$XDG_CONFIG_HOME/pcmanfm/default 1.55 -#fi 1.56 +# Start some LXDE componment. 1.57 +if [ ! -d $XDG_CONFIG_HOME/lxsession/Compiz ]; then 1.58 + cp -a $XDG_CONFIG_HOME/lxsession/LXDE \ 1.59 + $XDG_CONFIG_HOME/lxsession/Compiz 1.60 + sed -i 's|window_manager=.*|window_manager=compiz-startwm|' \ 1.61 + $XDG_CONFIG_HOME/lxsession/Compiz/desktop.conf 1.62 +fi 1.63 1.64 -# Start some LXDE componment. 1.65 -lxpanel -p slitaz & 1.66 -pcmanfm --desktop & 1.67 -emerald & 1.68 -exec compiz ccp --indirect-rendering 1.69 +exec lxsession -e LXDE -s Compiz 1.70 + 1.71 +#hsetroot -solid '#012345'