misc/scripts/lock

11 lines
254 B
Plaintext
Raw Normal View History

2018-08-05 18:53:07 +02:00
#!/bin/sh
icon=$HOME/img/misc/lock.png
tmpbg=/tmp/screenshot.png
2019-01-27 17:32:59 +01:00
test $# -eq 1 && icon=$1
2018-08-05 18:53:07 +02:00
scrot $tmpbg
gm convert $tmpbg -scale 10% -scale 1000% $tmpbg
2019-01-27 17:32:59 +01:00
gm composite -resize 256x256^ -gravity center "$icon" $tmpbg $tmpbg
2019-08-29 15:39:55 +02:00
i3lock -u -i $tmpbg 2>/dev/null