Initial commit
This commit is contained in:
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
LOCKARGS=""
|
||||
|
||||
for OUTPUT in `swaymsg -t get_outputs | jq -r '.[].name'`
|
||||
do
|
||||
IMAGE=/tmp/$OUTPUT-lock.png
|
||||
grim -o $OUTPUT $IMAGE
|
||||
convert $IMAGE -blur 2x8 $IMAGE
|
||||
LOCKARGS="${LOCKARGS} --image ${OUTPUT}:${IMAGE}"
|
||||
IMAGES="${IMAGES} ${IMAGE}"
|
||||
done
|
||||
swaylock $LOCKARGS
|
||||
rm $IMAGES
|
||||
Reference in New Issue
Block a user