mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 13:35:42 -07:00
Allow configuring locktime by environment variable.
This commit is contained in:
@@ -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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user