summaryrefslogtreecommitdiff
path: root/idle.sh
diff options
context:
space:
mode:
authorlittleblack111 <jerrylam110209@gmail.com>2023-06-14 20:40:56 +0800
committerlittleblack111 <jerrylam110209@gmail.com>2023-06-14 20:40:56 +0800
commitbd7784d182c0c7609d419817b18462283e51062d (patch)
tree767f82745b44503c29e2f52c69557029f6588055 /idle.sh
parent1ed1813d356b3289e60b2aadfcb997ef4e510efb (diff)
update
Diffstat (limited to 'idle.sh')
-rwxr-xr-xidle.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/idle.sh b/idle.sh
index 2e140ce..d7fe253 100755
--- a/idle.sh
+++ b/idle.sh
@@ -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