From 335c34c82720180c1f2c71b8c199bc2bc512b804 Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Tue, 3 Mar 2020 16:44:02 +0530 Subject: ... --- bin/.local/bin/lock | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 bin/.local/bin/lock (limited to 'bin') 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 @@ +#!/bin/bash +scrot /tmp/screen.png +convert /tmp/screen.png -scale 10% -scale 1000% /tmp/screen.png +[[ -f $1 ]] && convert /tmp/screen.png $1 -gravity center -composite -matte /tmp/screen.png +i3lock -u -i /tmp/screen.png +rm /tmp/screen.png -- cgit v1.2.3