KDE5 KWin – Disable Compositor from Command Line

command linedesktop-environmentkde5kwin

Is there any way to disable KWin compositing effects from command-line? AFAIK it's possible to disable it via System settings->Hardware->Display and Monitor->Compositor but it requires a KWin restart.If I'm able to disable the compositor from command line , then I can easily assign a shortcut to it.

Any idea?

BTW I use KDE Plasma 5.19.

Best Answer

To disable compositing:

qdbus org.kde.KWin /Compositor suspend

To enable compositing

qdbus org.kde.KWin /Compositor resume
Related Question