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