diff --git a/compton_toggle b/compton_toggle index 7abaf99..f8b6d28 100755 --- a/compton_toggle +++ b/compton_toggle @@ -11,11 +11,11 @@ if [[ -r $pidfile ]]; then fi if [[ -e $nvidia_dev ]]; then - vsync_backend= + gpu_opts= else - vsync_backend=('--vsync' 'drm') + gpu_opts=(--dbe --vsync opengl --backend xrender) fi -compton $vsync_backend[@] -cGC -t-5 -l-5 -r4 -o.55 -m.9 & +compton $gpu_opts[@] -cGC -t-5 -l-5 -r4 -o.55 & pid=$! if [[ -n $pid ]]; then printf '%s' $pid > $pidfile