I figured out a not-so-elegant workaround myself.
Create a bash script toggling night color, namely enable_night_color.sh
.
#!/bin/bash
/usr/bin/qdbus org.kde.kglobalaccel /component/kwin invokeShortcut "Toggle Night Color"
sleep 1
/usr/bin/qdbus org.kde.kglobalaccel /component/kwin invokeShortcut "Toggle Night Color"
Press Alt + F2
, then type autostart
, get into the Autostart system settings, add the shell script you’ve created as a Login Script.
Now every time on boot, the script will be automatically executed , toggling night color twice.