aboutsummaryrefslogtreecommitdiff
path: root/home/bin/lock
diff options
context:
space:
mode:
Diffstat (limited to 'home/bin/lock')
-rwxr-xr-xhome/bin/lock3
1 files changed, 2 insertions, 1 deletions
diff --git a/home/bin/lock b/home/bin/lock
index 3401cfe..d2eba4c 100755
--- a/home/bin/lock
+++ b/home/bin/lock
@@ -14,7 +14,8 @@ i3lock_options="--image=$screenshot --ignore-empty-password"
# Run before starting the locker
pre_lock() {
gpgconf --kill scdaemon || true
- scrot "$screenshot" \
+ rm -f "$screenshot" \
+ && scrot "$screenshot" \
&& convert "$screenshot" -scale 5% -scale 2000% "$screenshot"
#mpc pause
return