diff options
author | Blaise Thompson <blaise@untzag.com> | 2017-09-06 19:40:17 -0500 |
---|---|---|
committer | Blaise Thompson <blaise@untzag.com> | 2017-09-06 19:40:17 -0500 |
commit | 455906b4eb242266ba279cb5fbbde22c2b7eb534 (patch) | |
tree | 7e5060e2425073a2f3a8e8fdb5a76466c8a27361 /i3/lock.sh | |
parent | d9e224ba768e01db3b5b2cb0e47c4c4ea49a4723 (diff) |
i3lock
Diffstat (limited to 'i3/lock.sh')
-rwxr-xr-x | i3/lock.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/i3/lock.sh b/i3/lock.sh new file mode 100755 index 0000000..d60f0df --- /dev/null +++ b/i3/lock.sh @@ -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 -i /tmp/screen.png +rm /tmp/screen.png |