From f4a6f4c0b8b229b8d9be92025ae7985ba6704a2d Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Thu, 3 Oct 2019 22:06:18 +0200 Subject: [PATCH] Delete previous lock screen background --- bin/lock | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/lock b/bin/lock index 2bca112..c985b1f 100755 --- a/bin/lock +++ b/bin/lock @@ -5,6 +5,7 @@ IFS=$'\n\t' LOCK_BG_FILE="/tmp/lock_screen.png" +rm -f "$LOCK_BG_FILE" scrot "$LOCK_BG_FILE" mogrify -filter Gaussian -resize 50% -define filter:sigma=2.5 -resize 200% "$LOCK_BG_FILE" mogrify -font Liberation-Sans -fill white -undercolor '#00000080' -pointsize 30 -gravity South -annotate +0+200 "Screen locked" "$LOCK_BG_FILE"