From 14310c3c5878f41dad22bf7be599ef60549ddbad Mon Sep 17 00:00:00 2001 From: John Mertz Date: Mon, 21 Nov 2022 18:56:50 -0500 Subject: [PATCH] Support for blocking hibernation --- sway/idle.sh | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/sway/idle.sh b/sway/idle.sh index 5a47373..77e8d80 100755 --- a/sway/idle.sh +++ b/sway/idle.sh @@ -1,7 +1,8 @@ #!/bin/bash -BLFILE="/home/jpm/.spool/idle.dim" -OPFILE="/home/jpm/.spool/active_outputs" +BLFILE="$HOME/.spool/idle.dim" +OPFILE="$HOME/.spool/active_outputs" +NOHIBERNATE="$HOME/.spool/hibernate_inhibitor FADE_TIMEOUT=60 # one minute DIM_TIMEOUT=120 # two minutes @@ -12,18 +13,18 @@ SUSPEND_TIMEOUT=3600 # one hour function usage() { echo "usage: $0