hypr: made hyprlock use current background instead of screenshot

This commit is contained in:
Nico 2025-05-03 16:16:01 +10:00
parent d2ca6c3334
commit c26f0c1b91
3 changed files with 11 additions and 2 deletions

9
stow/.config/hypr/hyprlock.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
# gets the last part of the 'swww query' command
# should work as long as image path does not have spaces
IMAGE="$(swww query | rev | cut -f1 -d' ' | rev)"
cp "$IMAGE" /tmp/hyprlock-background
hyprlock