misc/scripts/lock

11 lines
254 B
Bash
Executable File

#!/bin/sh
icon=$HOME/img/misc/lock.png
tmpbg=/tmp/screenshot.png
test $# -eq 1 && icon=$1
scrot $tmpbg
gm convert $tmpbg -scale 10% -scale 1000% $tmpbg
gm composite -resize 256x256^ -gravity center "$icon" $tmpbg $tmpbg
i3lock -u -i $tmpbg 2>/dev/null