Skip to content
Snippets Groups Projects
Commit b05ba4a3 authored by Ruben Rodriguez's avatar Ruben Rodriguez
Browse files

Only run compton by default in the Trisquel custom session

parent b5a8ae92
No related branches found
No related tags found
No related merge requests found
...@@ -17,8 +17,7 @@ ...@@ -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 ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment