From 42081757880b654cff2f5d7c4252e3ae71b2e5a3 Mon Sep 17 00:00:00 2001 From: Konstantin Koslowski Date: Tue, 16 Aug 2022 11:06:48 +0200 Subject: [PATCH] bin/sway_lock: use png, grim on debian comes without jpeg --- bin/sway_lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/sway_lock b/bin/sway_lock index 24f1f9c..280eaf5 100755 --- a/bin/sway_lock +++ b/bin/sway_lock @@ -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 }