dots/stow/.config/hypr/hyprlock.sh

9 lines
215 B
Bash
Executable file

#!/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