1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

Adding i3/blurlock.sh

This commit is contained in:
Henrik Hautakoski 2023-09-03 23:24:33 +02:00
parent 10a9fdc6ea
commit 0879a76910

22
i3/blurlock.sh Executable file
View file

@ -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