Fade-out effect when turning of monitor
Feature Description
The idea is to mimic what Gnome does when the system is idle for enough time that it will turn off the monitor. Instead of just turn it off right away, it will slowly change the full screen to black via an opacity value.
Use Case
This allows the user some time to react (ie. move the mouse), to reset the "turn off monitor" timer.
This is specially useful if you configure the system to both turn off the monitor and lock the screen at the same time. If the screen starts to fade to black some seconds before the timer is reached, the user can react to avoid having the screen locked and having to then type the password to unlock the system again.
This would particularly great for cases when some apps (video players, etc) don't correctly inhibit the system from locking/turning off the monitor.
Compositor
Is this feature specific to one compositor?
- [x] All compositors
- [ ] niri
- [ ] Hyprland
Proposed Solution
For this to be really useful, it would probably make sense to have an option that makes turn off monitor and lock screen timeout be set equally, or, allow the user to fine-tune the timer for both.
For example, if I want to lock and turn off my monitor in 30 mins, then I can set turn of monitor to 29 minutes and 30 seconds, and lock to 30 min, that way, I will get the fade effect first, and will have enough time to react before the screen really turns off and/or the system locks itself.
Another solution would be to have a fade screen effect for turning off the monitor, and a fade effect to the lock screen for locking the system, that way, in both cases I will have enough time to react and I don't need to configure anything to make sure they both work great together.
I think this would be better done by the compositor tbh, but maybe could try to do a black overlay layer or something
it does this before lock now, but should it be before dpms off too?