From bca8ee86a341b0691142324459a373ef8bec0b20 Mon Sep 17 00:00:00 2001 From: Von Random Date: Tue, 15 Aug 2017 12:40:00 +0300 Subject: [PATCH] somewhat broken compton toggle fixed --- compton_toggle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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