aboutsummaryrefslogtreecommitdiff
path: root/home/bin/lock
diff options
context:
space:
mode:
Diffstat (limited to 'home/bin/lock')
-rwxr-xr-xhome/bin/lock7
1 files changed, 7 insertions, 0 deletions
diff --git a/home/bin/lock b/home/bin/lock
new file mode 100755
index 0000000..f75f4cb
--- /dev/null
+++ b/home/bin/lock
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+screenshot="$XDG_RUNTIME_DIR/.screen.png"
+
+scrot "$screenshot" \
+ && convert "$screenshot" -scale 5% -scale 2000% "$screenshot"
+i3lock --nofork --image="$screenshot" --ignore-empty-password