Is there a way to control KDE Plasma 6 night light from the command line?

Is there a way to control KDE Plasma 6 night light from the command line?

I use /usr/bin/qdbus6 org.kde.kglobalaccel /component/kwin invokeShortcut "Toggle Night Color" in a script to toggle it on and off.

If qdbus6 isn’t found you can try with just qdbus, that’s what I used before but I had to change it today since it stopped working.

2 Likes

busctl is available on most distributions (shipping with systemd) and another viable, often pre-installed alternative to qdbus.