misc/scripts/lock
2018-08-05 18:53:07 +02:00

11 lines
255 B
Bash
Executable File

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