awesomewm/modules/lock/i3lock.bash

13 lines
305 B
Bash
Raw Normal View History

2021-11-28 19:49:38 -08:00
#!/usr/bin/env bash
2022-11-04 10:23:41 -07:00
icon="./arch.png"
2021-11-28 19:49:38 -08:00
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"