Rewritting Compton's scripts on different files

This commit is contained in:
a_slacker_here 2015-02-28 19:39:13 +01:00
parent d95b8151ee
commit 9cfbd78876
2 changed files with 72 additions and 0 deletions

View file

@ -0,0 +1,9 @@
#!/bin/sh
[ $DESKTOP_SESSION = "trisquel-session" ] || exit 0
[ -f $HOME/.config/disable-compton ] && exit 0
FILE=/etc/compton.conf
[ -f $HOME/.config/compton.conf ] && FILE="$HOME/.config/compton.conf"
[ 0 != $(glxinfo |grep "renderer string:" |grep -v llvmpipe | wc -c) ] && exec compton --config $FILE &