diff options
Diffstat (limited to 'i3lock.sh')
-rwxr-xr-x | i3lock.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/i3lock.sh b/i3lock.sh new file mode 100755 index 0000000..029b2f1 --- /dev/null +++ b/i3lock.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +# Generates an i3lock bg based on a screenshot. + +imgLock="$HOME/images/padlock.png" +imgFinal="/tmp/lockFinal$(date +"%H%M%S").png" +maim /tmp/i3lockss.png +convert /tmp/i3lockss.png -paint 1 -swirl -20 "$imgLock" -gravity center -composite "$imgFinal" +i3lock -i "$imgFinal" -f |