From 2ed6bfff7c1d9a843c6bccdf663acddc7df6a522 Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 1 Aug 2017 03:35:46 -0500 Subject: [PATCH] Fixed a bug in the lock script Because of a stupid little typo, it wouldn't overlay the correct image on the lock screen. --- .bin/i3-salt-lock | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.bin/i3-salt-lock b/.bin/i3-salt-lock index f28790c9..7faf6489 100755 --- a/.bin/i3-salt-lock +++ b/.bin/i3-salt-lock @@ -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