hyprlock: do not get background image from swww

This commit is contained in:
Nico 2025-08-24 20:20:00 +10:00
parent a125ca22c5
commit 9e722b3329
Signed by: nico
SSH key fingerprint: SHA256:XuacYOrGqRxC3jVFjfLROn1CSvLz85Dec6N7O9Gwu/0

View file

@ -1,10 +1,5 @@
#!/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
1password --lock &
hyprlock