Toggle desktop composition effects from command line in plasma

Hopefully this is a quickie. I am having a problem with composition being off when waking from sleep. I figured i would just add to the script i use to sleep and wake up on timer to just toggle on desktop effects. I already had to add a line to rerun my gpu overclock. I searched around and my google fu is failing me. Either came up with a kde4 solution or powering off from command line. (may be lack of caffeine thing). Does anyone know the cli to toggle composting for plasma?

Check out this page:
https://unix.stackexchange.com/questions/597736/disabling-kwin-compositor-from-command-line

To disable compositing:

qdbus org.kde.KWin /Compositor suspend

To enable compositing:

qdbus org.kde.KWin /Compositor resume

Alternatively, try the Alt + Shift + F12 keyboard shortcut.

2 Likes

Awesome!!! that is exactly what i needed. I knew about the keyboard shortcut, but didnt know the command line. Thanks!!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.