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