hypr: made hyprlock use current background instead of screenshot
This commit is contained in:
parent
d2ca6c3334
commit
c26f0c1b91
3 changed files with 11 additions and 2 deletions
9
stow/.config/hypr/hyprlock.sh
Executable file
9
stow/.config/hypr/hyprlock.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue