half working sway lock cleaning old stuff
parent
3d6ba185af
commit
811307c06c
@ -0,0 +1,16 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
LOCK=~/.config/sway/lock.png
|
||||||
|
|
||||||
|
# go over each output and ss/blur then add to img
|
||||||
|
for OUTPUT in $(swaymsg -t get_outputs | gojq '.[].name' | tr -d '"')
|
||||||
|
do
|
||||||
|
IMAGE="${OUTPUT}_img.jpg"
|
||||||
|
grim -t jpeg -o $OUTPUT $IMAGE
|
||||||
|
convert $IMAGE -blur 5x3 - | composite -gravity center $LOCK - $IMAGE
|
||||||
|
LOCKARGS="${LOCKARGS} --image ${OUTPUT}:${IMAGE}"
|
||||||
|
IMAGES="${IMAGES} ${IMAGE}"
|
||||||
|
done
|
||||||
|
|
||||||
|
swaylock $LOCKARGS
|
||||||
|
rm $IMAGES
|
Loading…
Reference in New Issue