diff options
author | Shubham Saini <shubham6405@gmail.com> | 2020-03-03 11:14:02 +0000 |
---|---|---|
committer | Shubham Saini <shubham6405@gmail.com> | 2020-03-03 11:14:02 +0000 |
commit | 335c34c82720180c1f2c71b8c199bc2bc512b804 (patch) | |
tree | 5ca8151d99b5b7bdb6cc58e33614034412a9725e /bin | |
parent | eb506540b2539c14f3bb7910fa5478e4d60b17ee (diff) |
...
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/.local/bin/lock | 6 |
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 | ||
2 | scrot /tmp/screen.png | ||
3 | convert /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 | ||
5 | i3lock -u -i /tmp/screen.png | ||
6 | rm /tmp/screen.png | ||