From e14b57a555c307d3405c321d33b297877393760a Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Wed, 3 Nov 2021 21:03:44 +0100 Subject: Changed lock effect. --- i3lock.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'i3lock.sh') diff --git a/i3lock.sh b/i3lock.sh index dbbef5d..ee10a88 100755 --- a/i3lock.sh +++ b/i3lock.sh @@ -2,17 +2,18 @@ # Generates an i3lock bg based on a screenshot. -#imgLock="$HOME/images/icons/lock.png" +imgLock="$HOME/images/icons/lock.png" imgTemp="/tmp/i3lockss.png" imgFinal="/tmp/lockFinal$(date +"%H%M%S").png" maim -u "$imgTemp" #[ -e "$imgLock" ] && convert "$imgTemp" -paint 1 -swirl -30 "$imgLock" -gravity center -composite "$imgFinal" #[ -e "$imgLock" ] && convert "$imgTemp" "$imgLock" -gravity center -composite -monochrome "$imgFinal" +[ -e "$imgLock" ] && convert "$imgTemp" -monochrome +level-colors "#093145","#e0ea99" "$imgLock" -gravity center -composite "$imgFinal" #convert "$imgTemp" -canny 1x1 +level-colors "#093145","#e0ea99" "$imgFinal" #convert "$imgTemp" -type Grayscale -paint 1 "$imgFinal" #convert "$imgTemp" -colors 2 -mode 2x5 "#00001f,000000" "$imgFinal" #convert "$imgTemp" -median 10x5 "#00001f,000000" "$imgFinal" #convert "$imgTemp" -polaroid 0 +level-colors "#00001f,000000" "$imgFinal" #convert "$imgTemp" -colors 2 -motion-blur 5x5 +level-colors "#00001f,000000" "$imgFinal" -convert "$imgTemp" -median 2x2 -colors 8 "$imgFinal" +#convert "$imgTemp" -median 2x2 -colors 8 "$imgFinal" i3lock -i "$imgFinal" -f || i3lock -i "$imgTemp" -f -- cgit v1.2.1