From b05ba4a3e045eccc4762b1bf8b14bf6d357be3e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Rodr=C3=ADguez?= <ruben@trisquel.info> Date: Mon, 11 Aug 2014 20:17:18 +0200 Subject: [PATCH] Only run compton by default in the Trisquel custom session --- helpers/make-compton | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/helpers/make-compton b/helpers/make-compton index 1515ce8a..dee7fe53 100644 --- a/helpers/make-compton +++ b/helpers/make-compton @@ -17,8 +17,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -VERSION=2 -EXTERNAL='deb-src http://archive.ubuntu.com/ubuntu trusty universe' +VERSION=3 . ./config @@ -46,10 +45,12 @@ EOF cat << EOF > compton-launcher #!/bin/sh +[ \$DESKTOP_SESSION = "trisquel-session" ] || exit 0 + FILE=/etc/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 sed 's/^Depends:/Depends: mesa-utils, /' debian/control* -i -- GitLab