wok-next diff compiz-slitaz/stuff/compiz-session @ rev 21135

Up libgcrypt (1.8.4), libpgp-error (1.34), libxml2 (2.9.9), libxslt (1.1.33).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Jan 20 16:02:24 2019 +0200 (2019-01-20)
parents 8e1f5fe117e6
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/compiz-slitaz/stuff/compiz-session	Sun Jan 20 16:02:24 2019 +0200
     1.3 @@ -0,0 +1,59 @@
     1.4 +#!/bin/sh
     1.5 +#
     1.6 +# Start Compiz 3D Desktop on SliTaz. We use some LXDE componment
     1.7 +# and check compiz config files exist.
     1.8 +#
     1.9 +
    1.10 +export XDG_CONFIG_HOME="$HOME/.config"
    1.11 +export XDG_CACHE_HOME="$HOME/.cache"
    1.12 +export XDG_CURRENT_DESKTOP=LXDE
    1.13 +export XDG_MENU_PREFIX="lxde-"
    1.14 +export DESKTOP_SESSION=LXDE
    1.15 +
    1.16 +# Start DBUS session.
    1.17 +if [ ! "$DBUS_SESSION_BUS_ADDRESS" ]; then
    1.18 +	dbus-launch --sh-syntax --exit-with-session &
    1.19 +fi
    1.20 +
    1.21 +# Compiz configuration files from slitaz-configs.
    1.22 +if [ ! -f "$XDG_CONFIG_HOME/compiz/compizconfig/config" ]; then
    1.23 +	mkdir -p $XDG_CONFIG_HOME/compiz/compizconfig
    1.24 +	cp -r /usr/share/slitaz/compiz/* $XDG_CONFIG_HOME/compiz/compizconfig
    1.25 +		sed 's|imgpng|scale;scaleaddon;animation|; s|s0_|as_|; \
    1.26 +	s|composite;opengl|ccp;commands;text;png|; s|as_sens|s0_sens|; \
    1.27 +	s|decor;|decoration;|;s|\[decor|\[decoration|; s|as_zo|s0_zo|; \
    1.28 +	s|as_acc|s0_acc|;s|as_top|s0_top|;s|as_bot|s0_bot|;s|as_sky|s0_sky|; \
    1.29 +	/opacity/s/as/s0/; s|Shift>Button1|Shift>Button3|' \
    1.30 +	-i $XDG_CONFIG_HOME/compiz/compizconfig/Default.ini
    1.31 +	echo "
    1.32 +[animation]
    1.33 +s0_all_random = true
    1.34 +
    1.35 +[resize]
    1.36 +as_mode = 2
    1.37 +
    1.38 +[commands]
    1.39 +as_run_command0_key = <Shift>Print
    1.40 +as_command0 = mtpaint -s
    1.41 +as_run_command1_key = <Alt>F1
    1.42 +as_command1 = lxpanelctl menu
    1.43 +as_run_command2_key = <Alt>F2
    1.44 +as_command2 = xterm
    1.45 +
    1.46 +[winrules]
    1.47 +!s0_maximize_match = (name=Navigator) | name=mtpaint | class=TazWeb
    1.48 +!| role = browser
    1.49 +" >> $XDG_CONFIG_HOME/compiz/compizconfig/Default.ini
    1.50 +fi
    1.51 +
    1.52 +# Start some LXDE componment.
    1.53 +if [ ! -d $XDG_CONFIG_HOME/lxsession/Compiz ]; then
    1.54 +	cp -a $XDG_CONFIG_HOME/lxsession/LXDE \
    1.55 +		$XDG_CONFIG_HOME/lxsession/Compiz
    1.56 +	sed -i 's|window_manager=.*|window_manager=compiz-startwm|' \
    1.57 +		$XDG_CONFIG_HOME/lxsession/Compiz/desktop.conf
    1.58 +fi
    1.59 +
    1.60 +exec lxsession -e LXDE -s Compiz
    1.61 +
    1.62 +#hsetroot -solid '#012345'