Skip to content

Instantly share code, notes, and snippets.

@pythonhacker
Last active March 25, 2021 16:24
Show Gist options
  • Save pythonhacker/5fee31afe3fed42b34af837cf7bd10de to your computer and use it in GitHub Desktop.
Save pythonhacker/5fee31afe3fed42b34af837cf7bd10de to your computer and use it in GitHub Desktop.
Toggle X compositor on or off in shell (linux)
function toggle_xcomp() {
# toggle X compositor
ret=`xfconf-query -c xfwm4 -p /general/use_compositing`
case "$ret" in
"false") echo "turning compositor on";xfconf-query -c xfwm4 -p /general/use_compositing -t bool -s true;;
*) echo "turning compositor off";xfconf-query -c xfwm4 -p /general/use_compositing -t bool -s false;;
esac
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment