You may have read some convoluted (and outdated—Compton was abandoned in 2017) tutorials on the matter like MakeTechEasier's, or perused the excellent Arch Wiki's page on it to some despair, but if you are just a layperson who installed the MATE desktop for e.g. Ubuntu 20.04 (Fossa) and wants a slightly faster (i.e. GPU-accelerated) environment, there is a workaround that doesn't take too long to set up:

  1. Open System Tools, Terminal, and run the following commands:
    • sudo add-apt-repository ppa:yurivkhan/picom #iff on Ubuntu
    • sudo apt install picom #or appropriate command
    • grep -q picom `which mate-tweak` || (printf '%s\n' '#!/bin/bash' '# Workaround:' '#' 'for arg do' ' shift' ' [ "$arg" = "opengl-swc" ] && continue' ' [ "$arg" = "--paint-on-overlay" ] && continue' ' [ "$arg" = "--clear-shadow" ] && continue' ' set -- "$@" "$arg"' 'done' 'exec -a compton picom "$@"' | sudo tee /usr/local/bin/compton && sudo chmod -v +x /usr/local/bin/compton)
  2. Open Preferences, MATE Tweak, Windows; go down to Window Manager and select “Marco (Picom)” or, if you don't see that, “Marco (Compton)”

That's it! Your MATE desktop should run slightly better from here on out.

When mate-tweak version 22.04.1 makes it into your repos, even this won't be necessary. But, for now, Ubuntu LTS is running 2 major versions behind on the software anyway, so this blogpost will probably remain relevant for a while

Leave a Reply

Your email address will not be published. Required fields are marked *

Warning: This site uses Akismet to filter spam. Until or unless I can find a suitable replacement anti-spam solution, this means that (per their indemnification document) all commenters' IP addresses will be sent to Automattic, Inc., who may choose to share such with 3rd parties.
If this is unacceptable to you, I highly recommend using an anonymous proxy or public Wi-Fi connection when commenting.