blob: 2eed74cc7c39d0bf32a2766fbdfca3716a2bb415 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
# Generates an i3lock bg based on a screenshot.
imgLock="$HOME/images/icons/lock.png"
imgTemp="/tmp/i3lockss.png"
imgFinal="/tmp/lockFinal$(date +"%H%M%S").png"
maim "$imgTemp"
[ -e "$imgLock" ] && convert "$imgTemp" -paint 1 -swirl -30 "$imgLock" -gravity center -composite "$imgFinal"
i3lock -i "$imgFinal" -f || i3lock -i "$imgTemp" -f
|