diff options
| author | littleblack111 <jerrylam110209@gmail.com> | 2023-06-14 20:40:56 +0800 |
|---|---|---|
| committer | littleblack111 <jerrylam110209@gmail.com> | 2023-06-14 20:40:56 +0800 |
| commit | bd7784d182c0c7609d419817b18462283e51062d (patch) | |
| tree | 767f82745b44503c29e2f52c69557029f6588055 /idle.sh | |
| parent | 1ed1813d356b3289e60b2aadfcb997ef4e510efb (diff) | |
update
Diffstat (limited to 'idle.sh')
| -rwxr-xr-x | idle.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5,12 +5,12 @@ while true; do if [[ "$(systemctl is-system-running)" == "running" || "$(systemctl is-system-running)" == "degraded" ]]; then if [[ "$(xprintidle)" -gt 600000 ]]; then # Changed from 600000 (10 minutes) to 3600000 (1 hour) if [ ! -f /var/lock/idle.lock ]; then + sudo touch /var/lock/idle.lock $HOME/scripts/update.sh & killall picom; bspcomp & sleep 350 killall update.sh - sudo touch /var/lock/idle.lock - elif [[ "$(xprintidle)" -le 50 ]]; then + elif [[ "$(xprintidle)" -le 100 ]]; then sudo rm -f /var/lock/idle.lock continue else |
