lock.sh: wait longer on decoysnail

This commit is contained in:
Gabriel Ebner 2018-03-27 09:48:14 +02:00
parent cbe3320676
commit 702080b9b7

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