home/.bin/i3-salt-lock
Salt 2ed6bfff7c Fixed a bug in the lock script
Because of a stupid little typo, it wouldn't overlay the correct image on the lock screen.
2017-08-01 03:35:46 -05:00

10 lines
244 B
Bash
Executable File

#!/bin/sh
SHOT=/tmp/lockimg.png
LOCKIMAGE=$HOME/.i3lockicon
import -window root $SHOT
convert $SHOT -scale 10% -scale 1000% $SHOT
[[ -f $LOCKIMAGE ]] && convert $SHOT $LOCKIMAGE -gravity center -composite -matte $SHOT
i3lock -i $SHOT
rm $SHOT