Allow configuring locktime by environment variable.

This commit is contained in:
David Tomaschik
2020-07-18 15:53:03 -07:00
parent 5e498f9bcd
commit 9c147af8c1

View File

@@ -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 \