summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/.local/bin/lock1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/.local/bin/lock b/scripts/.local/bin/lock
index 017b297..7cdd54d 100755
--- a/scripts/.local/bin/lock
+++ b/scripts/.local/bin/lock
@@ -5,6 +5,7 @@ tmpbg='/tmp/screen.png'
(( $# )) && { icon=$1; }
+rm "$tmpbg"
scrot "$tmpbg"
convert "$tmpbg" -scale 10% -scale 1000% "$tmpbg"
convert "$tmpbg" "$icon" -gravity center -composite -matte "$tmpbg"