This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Toggle compositing with kwin 5

Tags: None
(comma "," separated)
stevek
Registered Member
Posts
45
Karma
0
OS

Toggle compositing with kwin 5

Thu Feb 12, 2015 10:24 pm
Hi,

With kwin 4 I was able to toggle compositing with the command
Code: Select all
qdbus org.kde.kwin /KWin toggleCompositing

Poking around in qdbusviewer I found that I could suspend and resume using the following
Code: Select all
qdbus org.kde.KWin /Compositor org.kde.kwin.Compositing.suspend
qdbus org.kde.KWin /Compositor org.kde.kwin.Compositing.resume

Is there a command that will simply toggle the compositing state as I could previously?

Thanks
luebking
Karma
0
https://git.reviewboard.kde.org/r/118463/

Either via kglobalaccel (global shortcuts)
Code: Select all
qdbus org.kde.kglobalaccel /component/kwin invokeShortcut "Suspend Compositing"


or with a little Bash-Fu:
Code: Select all
if [ `qdbus org.kde.KWin /Compositor active` = true ]; then qdbus org.kde.KWin /Compositor suspend; else qdbus org.kde.KWin /Compositor resume; fi
stevek
Registered Member
Posts
45
Karma
0
OS

Re: Toggle compositing with kwin 5

Fri Feb 13, 2015 1:42 am
Perfect :)

Thank you very much!


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft