10 lines
232 B
Bash
Executable file
10 lines
232 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
|