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 #!/bin/sh
LOCKTIME="${SCREENSAVER_MIN:-5}"
LOCKER="i3lock -c 000000" LOCKER="i3lock -c 000000"
# intentionally want word splitting below # intentionally want word splitting below
/usr/bin/xss-lock -- ${LOCKER} & /usr/bin/xss-lock -- ${LOCKER} &
exec /usr/bin/xautolock \ exec /usr/bin/xautolock \
-time 5 \ -time "${LOCKTIME}" \
-detectsleep \ -detectsleep \
-locker "${LOCKER}" \ -locker "${LOCKER}" \
-notify 30 \ -notify 30 \