Only run compton by default in the Trisquel custom session

This commit is contained in:
Rubén Rodríguez 2014-08-11 20:17:18 +02:00
parent b5a8ae92f4
commit b05ba4a3e0

View file

@ -17,8 +17,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# #
VERSION=2 VERSION=3
EXTERNAL='deb-src http://archive.ubuntu.com/ubuntu trusty universe'
. ./config . ./config
@ -46,10 +45,12 @@ EOF
cat << EOF > compton-launcher cat << EOF > compton-launcher
#!/bin/sh #!/bin/sh
[ \$DESKTOP_SESSION = "trisquel-session" ] || exit 0
FILE=/etc/compton.conf FILE=/etc/compton.conf
[ -f ~/.config/compton.conf ] && FILE="~/.config/compton.conf" [ -f ~/.config/compton.conf ] && FILE="~/.config/compton.conf"
[ 0 != \$(glxinfo |grep "renderer string:" |grep -v llvmpipe | wc -c) ] && compton --config \$FILE & [ 0 != \$(glxinfo |grep "renderer string:" |grep -v llvmpipe | wc -c) ] && exec compton --config \$FILE &
EOF EOF
sed 's/^Depends:/Depends: mesa-utils, /' debian/control* -i sed 's/^Depends:/Depends: mesa-utils, /' debian/control* -i