i3lock: Make fuzzy-i3lock a bit like 37c3

This commit is contained in:
finga 2023-11-30 16:09:32 +01:00
parent c3bf62e3ed
commit c4a7b9bc40
2 changed files with 9 additions and 2 deletions

View file

@ -9,5 +9,12 @@
screenshot="${TMPDIR:-/tmp}/fuzzy-i3lock.png"
scrot -o "$screenshot"
mogrify -scale 10% -scale 1000% "$screenshot"
case $1 in
"37c3") mogrify -scale 10% -scale 1000% -blur 0x1 -dither FloydSteinberg -colors 32 "$screenshot"
;;
*) mogrify -scale 10% -scale 1000% "$screenshot"
;;
esac
exec i3lock -i "$screenshot"