Feature request: night temperature slider as control center widget
Feature Description
I would love to be able to control the night temperature while night mode is activated in other ways than through the DMS settings or the IPC. A slider in the control center would be absolutely fabulous for this!
Use Case
It currently requires explicit keybinds with custom shell commands to manually control the temperature of night mode. The API doesn't allow to, say, decrease the temperature by a 1000K, but instead only allows for commands like dms ipc call night setTargetTemp 5500. This becomes quite cumbersome if you regularly want to change the target temperature, which I often do.
Having a slider in the control center would make this process tremendously more easy.
Compositor(s)
All compositors
If Other, please specify
No response
Proposed Solution
Unfortunately, I don't know QML well enough to implement this myself.
Alternatives/Existing Solutions
If the API of the CLI would change so that it allows for changing the temperature by a certain amount, relative to the current temperature, I would already be very happy!
The slider is already there on master, it just lives behind the tile: in the Control Center, expanding the Night mode tile shows a "Color Temperature" slider from 1000K to 6000K in 100K steps (quickshell/Modules/ControlCenter/Widgets/NightModeTile.qml). It arrived with the Control Center grid rework in 014c69b0, so it does not exist in 1.6.0. Does that cover what you are after, or did you mean a slider that is visible without expanding the tile?
On the IPC side, dms ipc call night setTargetTemp <1000-6000> sets an absolute value today. A relative one would be easy to add next to it, if the maintainers want it. One detail that would need a decision: setTargetTemp rounds to 500K steps while the slider moves in 100K steps, so the two disagree about what a valid value is.
@Mario-Mohar that's great! Sorry, I wasn't aware of this new functionality since I'm not using the master branch. I will check features on master the next time before doing a feature request.
But the expansion of the Night mode tile in the control center would be even better than my suggestion, since this wouldn't clutter up the control center anymore. Perfect, thanks!