[FEATURE] Preview lock screen transition effects without locking
Submission checklist
- [x] I have searched existing issues and confirmed this has not been requested before.
- [x] I have checked existing pull requests for similar changes.
- [x] I have read SCOPE.md. This cannot already be done with existing configuration, IPC, a script-backed widget, or a plugin.
Feature type
UI / visual improvement
Feature summary
A Preview control under Settings → Lock Screen → Transition Effects that plays a chosen effect on screen without engaging the session lock.
Motivation / use case
The lock picks a random effect from the pool each time. To see what a given effect looks like before deciding whether to keep it in the pool, you have to lock and unlock repeatedly until it comes up. With 11 effects, going through all of them takes a while.
Proposed solution
A "Preview Effect" button after Transition Effects opens a menu of all 11 effects. Picking one screencopies each output and plays that effect on fullscreen overlay layer surfaces: desktop → background → desktop. It reuses LockscreenTransitionCover, transition_duration, edge_smoothness and the same per-effect randomization as a real lock. No session lock is taken, and a click or key press ends it early.
One open question: during the preview the revealed side is the blurred, tinted desktop capture, not the full lock screen with wallpaper, clock and login box. That keeps the preview small and leaves LockSurface untouched, but it isn't pixel-identical to what the wallpaper background would look like. Would that be acceptable, or should it use the configured lock screen background?
Alternatives considered
- Taking a real session lock and auto-unlocking after the animation. That's faithful, but it means locking the session for a preview and unlocking without authentication.
- A small thumbnail preview inside the settings window. It's cheaper but much less representative of a full-screen effect.
Additional context
I have a working implementation, tested on niri with two monitors, and can open a PR if this is wanted.