dotfiles/.local/bin/screenlockdown.sh

10 lines
306 B
Bash
Raw Normal View History

#!/bin/sh
# DISPLAY=:0 i3lock -i ~/Pictures/lock.png -n -p win -u
# DISPLAY=:0 i3lock --fuzzy
scrot /tmp/i3lock.png;
ffmpeg -i /tmp/i3lock.png -y -vf "boxblur=20" /tmp/i3lock-blurred.png &&
xset dpms 10 20 30 s 10 10;
i3lock -i /tmp/i3lock-blurred.png -n -u &&
xset dpms 0 0 0 s 0 0;
rm /tmp/i3lock*.png;