From c4bff73a83b6a0cfc36fa7e8d5e4644d13be226f Mon Sep 17 00:00:00 2001 From: David Runge Date: Wed, 17 Aug 2016 18:17:08 +0200 Subject: bin/i3lock: Adding verbose/ debug mode. Making all external calls absolute. --- bin/i3lock | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/i3lock b/bin/i3lock index 2958667..50ce049 100755 --- a/bin/i3lock +++ b/bin/i3lock @@ -1,7 +1,10 @@ #!/usr/bin/env bash + +set -euo pipefail + image_location=/tmp/$(whoami)/screen_locked.png -xset b off -scrot -q 100 $image_location -convert -quality 1 -implode 1 -motion-blur 16x10 $image_location $image_location -i3lock -i $image_location -ef +/usr/bin/xset b off +/usr/bin/scrot -q 100 $image_location +/usr/bin/convert -quality 1 -implode 1 -motion-blur 16x10 $image_location $image_location +/usr/bin/i3lock -i $image_location -ef -- cgit v1.2.3-70-g09d2