Skip to content

Instantly share code, notes, and snippets.

@sinewalker
Created March 9, 2018 23:30
Show Gist options
  • Save sinewalker/41335c7ea32030ede9bb3a26b0b835c0 to your computer and use it in GitHub Desktop.
Save sinewalker/41335c7ea32030ede9bb3a26b0b835c0 to your computer and use it in GitHub Desktop.
Toggle compositing in KDE

qdbus org.kde.KWin /Compositor org.kde.kwin.Compositing.active

Gives you true or false depending on whether it is currently enabled or not

You can enable compositing by calling

qdbus org.kde.KWin /Compositor org.kde.kwin.Compositing.resume

and disable by calling

qdbus org.kde.KWin /Compositor org.kde.kwin.Compositing.suspend

also alt-shift-F12 toggles compositing

@lg188
Copy link

lg188 commented Jun 28, 2025

The resume and suspend methods have been removed in more recent version. You can still check it through the active property and the shortcut still works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment