xlock (696B)
1 #!/bin/sh 2 #mpc stop 3 4 get_short_fortune() { 5 while :; do 6 text="$(fortune)" 7 if [ "$(echo "$text" | wc -l)" -lt 8 ]; then 8 echo "$text" 9 break 10 fi 11 done 12 } 13 14 img="$(mktemp --tmpdir tmp.XXXXXXXXXX.png)" 15 maim "$img" 16 #gm convert $img -blur 0x10 $img 17 convert "$img" \ 18 -blur 0x10 \ 19 -fill black \ 20 -colorize 20% \ 21 -fill white \ 22 -gravity Center \ 23 -font 'PragmataPro' \ 24 -pointsize 142 \ 25 -annotate +0-7 '🔒' \ 26 "$img" 27 convert "$img" \ 28 -fill white \ 29 -gravity Center \ 30 -font 'PragmataPro' \ 31 -pointsize 22 \ 32 -annotate +0+160 \ 33 "$(get_short_fortune)" \ 34 "$img" 35 i3lock -i "$img"