lock.sh: wait longer on decoysnail
This commit is contained in:
parent
cbe3320676
commit
702080b9b7
5
lock.sh
5
lock.sh
@ -7,6 +7,9 @@ xset +dpms dpms 5 5 5
|
||||
revert_dpms() { xset dpms 0 0 0; }
|
||||
trap revert_dpms EXIT
|
||||
|
||||
pre_xset_dpms_sleep=0.1
|
||||
[ "$HOSTNAME" = decoysnail ] && pre_xset_dpms_sleep=0.5
|
||||
|
||||
# pre_lock
|
||||
|
||||
# We set a trap to kill the locker if we get killed, then start the locker and
|
||||
@ -31,7 +34,7 @@ if [[ -e /dev/fd/${XSS_SLEEP_LOCK_FD:--1} ]]; then
|
||||
else
|
||||
trap 'kill %%' TERM INT
|
||||
i3lock -n $i3lock_options &
|
||||
sleep 0.1; xset dpms force off
|
||||
sleep $pre_xset_dpms_sleep; xset dpms force off
|
||||
wait
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user