]> src.twobees.de Git - dotfiles.git/blobdiff - stow/bin/.bin/lockscreen.sh
sway stuff
[dotfiles.git] / stow / bin / .bin / lockscreen.sh
diff --git a/stow/bin/.bin/lockscreen.sh b/stow/bin/.bin/lockscreen.sh
new file mode 100755 (executable)
index 0000000..536e95a
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+outfile=$1
+
+if [ -z "$outfile" ];then
+    echo output path missing >&2
+    outfile=/tmp/lock.png
+fi
+
+grim - | convert -filter Gaussian -resize 20% -blur 0x2.5 -resize 500% png:- "$outfile"
+swaylock -f -c 00FF00 -i "$outfile"