diff --git a/lock.sh b/lock.sh index d509af5..e0f79f2 100755 --- a/lock.sh +++ b/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