mate-tweak: use marco-xpresent on intel gpus
This commit is contained in:
parent
c0b1817169
commit
1d282a727e
1 changed files with 7 additions and 4 deletions
|
|
@ -18,7 +18,7 @@
|
|||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
|
||||
VERSION=13
|
||||
VERSION=14
|
||||
|
||||
. ./config
|
||||
|
||||
|
|
@ -53,11 +53,14 @@ WINDOW_MANAGER=xterm
|
|||
[ -f /usr/bin/marco ] && WINDOW_MANAGER=marco
|
||||
[ -f /usr/bin/marco-no-composite ] && WINDOW_MANAGER=marco-no-composite
|
||||
|
||||
# Check for hardware acceleration
|
||||
if glxinfo -B | grep "OpenGL renderer string" | grep -qv llvmpipe ; then
|
||||
WINDOW_MANAGER=marco
|
||||
# Use marco-glx (picom) on non-intel gpu, if available
|
||||
if glxinfo -B | grep -qiv vendor.*intel; then
|
||||
if [ -f /usr/bin/picom ] && [ -f /usr/bin/marco-glx ] ; then
|
||||
WINDOW_MANAGER=marco-glx
|
||||
else
|
||||
WINDOW_MANAGER=marco
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue