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.
- Download it here
- Make it the script executable with
chmod u+x toggle-xfwm-compisiting.txt(or by changing permissions in your file manager).
- Then use the script with
./toggle-xfwm-compisiting.txt. If it's working, shadows and transparency on windows/panels/desktop will disappear/reappear.
- (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
Now I just hit that keyboard shortcut when want to play a game.
|714 bytes||714 bytes|