From 9c147af8c1a1261aaf3bc89ca6eba62b53a582d3 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Sat, 18 Jul 2020 15:53:03 -0700 Subject: [PATCH] Allow configuring locktime by environment variable. --- bin/i3lock.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/i3lock.sh b/bin/i3lock.sh index 12d355e..42260c5 100755 --- a/bin/i3lock.sh +++ b/bin/i3lock.sh @@ -1,9 +1,10 @@ #!/bin/sh +LOCKTIME="${SCREENSAVER_MIN:-5}" LOCKER="i3lock -c 000000" # intentionally want word splitting below /usr/bin/xss-lock -- ${LOCKER} & exec /usr/bin/xautolock \ - -time 5 \ + -time "${LOCKTIME}" \ -detectsleep \ -locker "${LOCKER}" \ -notify 30 \