summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xidle.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/idle.sh b/idle.sh
index f1f03f9..50ac312 100755
--- a/idle.sh
+++ b/idle.sh
@@ -111,7 +111,10 @@ if [ "$1" ]; then
if [[ "$(xprintidle)" -gt $IDLETIME && ! -f $lockpath/$lockfile && $1 ]]; then # Changed from 600000 (10 minutes) to 3600000 (1 hour)
idle
continue
- elif [[ "$(xprintidle)" -le $IDLEBACKTIME && -f $lockpath/$lockfile ]]; then
+ else
+ sleep 10
+ fi
+ if [[ "$(xprintidle)" -le $IDLEBACKTIME && -f $lockpath/$lockfile ]]; then
stopidle
continue
else