summaryrefslogtreecommitdiff
path: root/bin/.local
diff options
context:
space:
mode:
Diffstat (limited to 'bin/.local')
-rwxr-xr-xbin/.local/bin/lock6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/.local/bin/lock b/bin/.local/bin/lock
new file mode 100755
index 0000000..d7dc632
--- /dev/null
+++ b/bin/.local/bin/lock
@@ -0,0 +1,6 @@
1#!/bin/bash
2scrot /tmp/screen.png
3convert /tmp/screen.png -scale 10% -scale 1000% /tmp/screen.png
4[[ -f $1 ]] && convert /tmp/screen.png $1 -gravity center -composite -matte /tmp/screen.png
5i3lock -u -i /tmp/screen.png
6rm /tmp/screen.png