#! /bin/sh # 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. # # @author Ben-Linsey-Bloom # @created 2013-04-30 if $(xfconf-query --channel=xfwm4 --property=/general/use_compositing) == "true" then xfconf-query --channel=xfwm4 --property=/general/use_compositing --set=false else xfconf-query --channel=xfwm4 --property=/general/use_compositing --set=true fi