diff --git a/i3/blurlock.sh b/i3/blurlock.sh new file mode 100755 index 0000000..62897da --- /dev/null +++ b/i3/blurlock.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +IMG=/tmp/lockscreenbg.png + +# take screenshot +import -window root $IMG + +# blur it +convert $IMG -blur 0x10 $IMG +#convert $IMG -scale 10% -scale 1000% $IMG + +# lock the screen +i3lock -i $IMG + +#while [ true ]; do +# sleep 10 +# if [ $(pgrep i3lock | wc -l) -ne 0 ]; then +# xset dpms force off +# else : +# exit 0 +# fi +#done