bin/sway_lock: use png, grim on debian comes without jpeg

This commit is contained in:
Konstantin Koslowski 2022-08-16 11:06:48 +02:00
parent f449ba5b02
commit 4208175788

View file

@ -3,9 +3,9 @@ source $HOME/.config/sway/bin/sway_helpers
LOCK_IMAGE=$HOME/.config/sway/bin/lock.png
MEDIA_APP=playerctl
SCROT_APP=grim
SCROT_APP_ARGS=" -t jpeg"
SCROT_APP_ARGS=" -t png -l 0"
SCROT_FILE_BASE=$HOME/.lockscreen
SCROT_FILE_EXT=jpg
SCROT_FILE_EXT=png
LOCK_APP=swaylock
LOCK_ARGS=" -f -F -e -s fill -c 000000 --indicator-radius 100 --indicator-thickness 20"
INHIBIT_FILE=$HOME/.inhibit_lock
@ -49,7 +49,7 @@ function _screenshot() {
$SCROT_APP $SCROT_APP_ARGS -o $output $SCROT_FILE
# convert -blur 0x5 $SCROT_FILE $SCROT_FILE
# convert -motion-blur 15x15 $SCROT_FILE $SCROT_FILE
convert -scale 20% -blur 0x2.5 -resize 500% $SCROT_FILE $SCROT_FILE
convert -scale 20% -blur 2x2 -resize 500% $SCROT_FILE $SCROT_FILE
convert -composite -gravity center $SCROT_FILE $LOCK_IMAGE $SCROT_FILE
done
}