core: use a screenshot for fade in/out#726
Conversation
|
just tested for ya. This helps a lot with the fade in animation. Previously it wouldn't work on my main monitor (maybe it did, but the fade looked like it was instant) with this change the transition is a lot smoother. Thanks! |
1f5ac6e to
1ec3485
Compare
|
I also tested the One thing I didn't mention yet: With this, the crossfade of the background can be configured with the |
vaxerski
left a comment
There was a problem hiding this comment.
a lot of changes for "using a screenshot" but alright, looks ok
|
Most of it comes from the Background widget. It didn't make any sense to me to jank this feature on top of the existing background cross fade and reload code. Thanks for reviewing and testing though. Merging 🚆 |
|
or just set the permission for hyprlock's binary only. rtfm: https://wiki.hypr.land/Configuring/Permissions/#notes |
|
@vaxerski huh wdym? |
|
because it's not valid regex probably. The first parameter is a regex, not a path. The link I sent outlines a regex for nix. |
|
I have set this in nix as per the wiki permission = [
"${lib.getExe config.programs.hyprlock.package}, screencopy, allow"
];This just expands to the line I posted. Anyways I will try the regex from the wiki just to be sure |
|
@fufexan that example is wrong, it will break if you have any funky regex characters in the path. Can you nuke it? |
|
Ahhh I see what the problem is!! Characters with special meaning for regex (e.g. |
|
Damn, forgot we have + in some version strings. |

Instead of relying on Hyprland drawing it's workspaces when locked, use a screenshot to fade in and out.
Basically had to rewrite the background widget.
No merging yet. I might revision the background widget.
Needs testing.
Note:
This is supposed to go together with a MR that makes it so Hyprland does not draw workspaces when locked per default. But I have a
misc:allow_session_lock_xraysetting planed to keep it possible to useshape:xrayor implement dynamic blur.