--- /dev/null
+#!/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"