wok annotate compiz/stuff/compiz-session @ rev 24986

Up nettle 3.7.3 again, need glib-networking rebuild to no break midori
author Stanislas Leduc <shann@slitaz.org>
date Wed May 11 08:28:28 2022 -0400 (2022-05-11)
parents 41794be0da15
children
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
psychomaniak@19217 10 export XDG_MENU_PREFIX="lxde-"
psychomaniak@19217 11 export DESKTOP_SESSION=LXDE
pankso@12405 12
pankso@12405 13 # Start DBUS session.
pankso@12405 14 if [ ! "$DBUS_SESSION_BUS_ADDRESS" ]; then
pankso@12405 15 dbus-launch --sh-syntax --exit-with-session &
pankso@12405 16 fi
pankso@12405 17
pankso@12405 18 # Compiz configuration files from slitaz-configs.
psychomaniak@19217 19 if [ ! -f "$XDG_CONFIG_HOME/compiz/compizconfig/config" ]; then
psychomaniak@19217 20 mkdir -p $XDG_CONFIG_HOME/compiz/compizconfig
psychomaniak@19217 21 cp -r /usr/share/slitaz/compiz/* $XDG_CONFIG_HOME/compiz/compizconfig
psychomaniak@19217 22 sed 's|imgpng|scale;scaleaddon;animation|; s|s0_|as_|; \
psychomaniak@19217 23 s|composite;opengl|ccp;commands;text;png|; s|as_sens|s0_sens|; \
psychomaniak@19217 24 s|decor;|decoration;|;s|\[decor|\[decoration|; s|as_zo|s0_zo|; \
psychomaniak@19217 25 s|as_acc|s0_acc|;s|as_top|s0_top|;s|as_bot|s0_bot|;s|as_sky|s0_sky|; \
psychomaniak@19217 26 /opacity/s/as/s0/; s|Shift>Button1|Shift>Button3|' \
psychomaniak@19217 27 -i $XDG_CONFIG_HOME/compiz/compizconfig/Default.ini
psychomaniak@19217 28 echo "
psychomaniak@19217 29 [animation]
psychomaniak@19217 30 s0_all_random = true
psychomaniak@19217 31
psychomaniak@19217 32 [resize]
psychomaniak@19217 33 as_mode = 2
psychomaniak@19217 34
psychomaniak@19217 35 [commands]
psychomaniak@19217 36 as_run_command0_key = <Shift>Print
psychomaniak@19217 37 as_command0 = mtpaint -s
psychomaniak@19217 38 as_run_command1_key = <Alt>F1
psychomaniak@19217 39 as_command1 = lxpanelctl menu
psychomaniak@19217 40 as_run_command2_key = <Alt>F2
psychomaniak@19217 41 as_command2 = xterm
psychomaniak@19217 42
psychomaniak@19217 43 [winrules]
psychomaniak@19217 44 !s0_maximize_match = (name=Navigator) | name=mtpaint | class=TazWeb
psychomaniak@19217 45 !| role = browser
psychomaniak@19217 46 " >> $XDG_CONFIG_HOME/compiz/compizconfig/Default.ini
pankso@12405 47 fi
pankso@12405 48
psychomaniak@19217 49 # Start some LXDE componment.
psychomaniak@19217 50 if [ ! -d $XDG_CONFIG_HOME/lxsession/Compiz ]; then
psychomaniak@19217 51 cp -a $XDG_CONFIG_HOME/lxsession/LXDE \
psychomaniak@19217 52 $XDG_CONFIG_HOME/lxsession/Compiz
psychomaniak@19217 53 sed -i 's|window_manager=.*|window_manager=compiz-startwm|' \
psychomaniak@19217 54 $XDG_CONFIG_HOME/lxsession/Compiz/desktop.conf
psychomaniak@19217 55 fi
pankso@12405 56
psychomaniak@19217 57 exec lxsession -e LXDE -s Compiz
psychomaniak@19217 58
psychomaniak@19217 59 #hsetroot -solid '#012345'