Skip to content
Snippets Groups Projects
Commit 1d282a72 authored by Ruben Rodriguez's avatar Ruben Rodriguez
Browse files

mate-tweak: use marco-xpresent on intel gpus

parent c0b18171
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# #
VERSION=13 VERSION=14
. ./config . ./config
...@@ -53,12 +53,15 @@ WINDOW_MANAGER=xterm ...@@ -53,12 +53,15 @@ WINDOW_MANAGER=xterm
[ -f /usr/bin/marco ] && WINDOW_MANAGER=marco [ -f /usr/bin/marco ] && WINDOW_MANAGER=marco
[ -f /usr/bin/marco-no-composite ] && WINDOW_MANAGER=marco-no-composite [ -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 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 if [ -f /usr/bin/picom ] && [ -f /usr/bin/marco-glx ] ; then
WINDOW_MANAGER=marco-glx WINDOW_MANAGER=marco-glx
else
WINDOW_MANAGER=marco
fi fi
fi
fi fi
gsettings set org.mate.session.required-components windowmanager \$WINDOW_MANAGER gsettings set org.mate.session.required-components windowmanager \$WINDOW_MANAGER
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment