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

10 lines
234 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
1password --lock &
hyprlock