summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
author--global <ik.boikov.public@protonmail.com>2021-07-15 08:56:58 +0200
committer--global <ik.boikov.public@protonmail.com>2021-07-15 08:56:58 +0200
commitf31b61bc5590a7e814e030ee25eac5da5f2f20c3 (patch)
treeeaeab58a0b161b2291b8c05ef061f31f8c45efd2 /scripts
parentfd850fb2ed9870edcb1df205e08e8ccb25fb6760 (diff)
lock - rm old screenshot
Diffstat (limited to 'scripts')
-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"