From 702080b9b78a5d88b86e6936f436ec43a89e1cda Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Tue, 27 Mar 2018 09:48:14 +0200 Subject: [PATCH] lock.sh: wait longer on decoysnail --- lock.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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