Simple script for Linux gamers - toggle desktop compositing in XFCE

A short script to toggle compositing on or off for XFCE Window Manager (XFWM). Compositing improves desktop aesthetics and usability, but turning it off improves compatibility (and performance) for games. At time of writing Team Fortress 2, Counter-Strike: Source and other games on the Source engine will break on startup if desktop compositing is turned on in XFCE.
  1. Download it here
  2. Make it the script executable with chmod u+x toggle-xfwm-compisiting.txt (or by changing permissions in your file manager).
  3. Then use the script with ./toggle-xfwm-compisiting.txt. If it's working, shadows and transparency on windows/panels/desktop will disappear/reappear.
  4. (optional) I added a keyboard shortcut in XFCE Settings Manager > Keyboard > Application Shortcuts. The command for the shortcut would have to be the full path, something like /home/ben/scripts/toggle-xfwm-compositing.txt Now I just hit that keyboard shortcut when want to play a game.
AttachmentSize
Plain text icon toggle-xfwm-compositing.txt714 bytes

Add new comment

(If you're a human, don't change the following field)
Your first name.
(If you're a human, don't change the following field)
Your first name.

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.