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 \