aboutsummaryrefslogtreecommitdiff
path: root/misc/bin/lock.sh
diff options
context:
space:
mode:
Diffstat (limited to 'misc/bin/lock.sh')
-rwxr-xr-xmisc/bin/lock.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/misc/bin/lock.sh b/misc/bin/lock.sh
new file mode 100755
index 0000000..6088b94
--- /dev/null
+++ b/misc/bin/lock.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# Take a screenshot
+scrot -o /tmp/screen_locked.png
+
+# Pixellate it 10x
+mogrify -scale 10% -scale 1000% /tmp/screen_locked.png
+
+# Lock screen displaying this image.
+i3lock -i /tmp/screen_locked.png