diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-06-02 14:18:21 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-06-02 14:18:21 +0800 |
| commit | 5db52f3594dd1f98b329bc1a325117c8c083b0e9 (patch) | |
| tree | e059af5a2f765b5f61f50b8b3fa2fe51006e6e7b | |
| parent | 4de7a3a65cd9500b4732341fe38674c3b9303f50 (diff) | |
added idle while online, so it wont use much system resources during use
| -rwxr-xr-x | idle.sh | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |
