Fixed a bug in the lock script

Because of a stupid little typo, it wouldn't overlay the correct image on the lock screen.
This commit is contained in:
Salt 2017-08-01 03:35:46 -05:00
parent 44cb868fc8
commit 2ed6bfff7c

View File

@ -1,16 +1,9 @@
#!/bin/sh
SHOT=/tmp/lockimg.png
LOCKIMAGE=~/.i3lockicon
LOCKIMAGE=$HOME/.i3lockicon
import -window root $SHOT
## Radial blur
#convert $SHOT -resize 50% $IMAGE
#convert $SHOT -blur 2x8 $IMAGE
#convert $SHOT -resize 200% $IMAGE
## Neat info-only censor
convert $SHOT -scale 10% $SHOT
convert $SHOT -scale 1000% $SHOT
[[ -f $LOCKIMAGE ]] && convert $SHOT $LOCKIMG -gravity center -composite -matte $SHOT
convert $SHOT -scale 10% -scale 1000% $SHOT
[[ -f $LOCKIMAGE ]] && convert $SHOT $LOCKIMAGE -gravity center -composite -matte $SHOT
i3lock -i $SHOT
rm $SHOT