awesomewm/modules/lock/i3lock.bash

13 lines
305 B
Bash
Executable File

#!/usr/bin/env bash
icon="./arch.png"
tmpbg="/tmp/lockscreen.png"
tmpic="/tmp/lockscreenicon.png"
scrot --overwrite "$tmpbg"
convert "$icon" -scale 25% "$tmpic"
convert "$tmpbg" -scale 10% -scale 1000% "$tmpbg"
convert "$tmpbg" "$tmpic" -gravity center -composite -matte "$tmpbg"
i3lock -u -i "$tmpbg"