summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorShubham Saini <shubham6405@gmail.com>2020-03-03 11:14:02 +0000
committerShubham Saini <shubham6405@gmail.com>2020-03-03 11:14:02 +0000
commit335c34c82720180c1f2c71b8c199bc2bc512b804 (patch)
tree5ca8151d99b5b7bdb6cc58e33614034412a9725e /bin
parenteb506540b2539c14f3bb7910fa5478e4d60b17ee (diff)
...
Diffstat (limited to 'bin')
-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