enable vsync only for dri backend
This commit is contained in:
parent
a9074004eb
commit
b29d66cc7e
1 changed files with 3 additions and 3 deletions
|
@ -11,11 +11,11 @@ if [[ -r $pidfile ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -e $nvidia_dev ]]; then
|
if [[ -e $nvidia_dev ]]; then
|
||||||
vsync_backend='opengl'
|
vsync_backend=
|
||||||
else
|
else
|
||||||
vsync_backend='drm'
|
vsync_backend=('--vsync' 'drm')
|
||||||
fi
|
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=$!
|
pid=$!
|
||||||
if [[ -n $pid ]]; then
|
if [[ -n $pid ]]; then
|
||||||
printf '%s' $pid > $pidfile
|
printf '%s' $pid > $pidfile
|
||||||
|
|
Loading…
Reference in a new issue