aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/i3lock11
1 files changed, 7 insertions, 4 deletions
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