From cbd56b6bacfd4180eff83eb970848a7b168ce6dd Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Thu, 18 Feb 2016 11:48:36 +0100 Subject: [PATCH] Now with blur --- bspwm/.config/scripts/blurlock.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bspwm/.config/scripts/blurlock.sh b/bspwm/.config/scripts/blurlock.sh index c3743b9..3f1f052 100755 --- a/bspwm/.config/scripts/blurlock.sh +++ b/bspwm/.config/scripts/blurlock.sh @@ -1,18 +1,18 @@ #!/bin/bash -#TMP=/tmp/lockscreen.png +TMP=/tmp/lockscreen.png #scrot -q 30 -z $TMP #convert $TMP -scale 10% -scale 1000% $TMP #blurscreen $TMP #convert -brightness-contrast -50x-40 $TMP $TMP -#scrot $TMP -e 'convert -resize 20% -fill "#282828" -colorize 50% -blur 0x1 -resize 500% $f '"$TMP" -#convert -gravity Center -composite $TMP ~/.config/lock.png $TMP +scrot $TMP -e 'convert -resize 20% -fill "#282828" -colorize 50% -blur 0x1 -resize 500% $f '"$TMP" +convert -gravity Center -composite $TMP ~/.config/lock.png $TMP if [ -n "$(pgrep i3lock)" ]; then echo "i3lock already running. Aborting" >&2 exit 1 fi -exec i3lock -u -i ~/.config/lockimage.png -c 000000 +exec i3lock -u -i $TMP -c 000000