summaryrefslogtreecommitdiff
path: root/idle.sh
diff options
context:
space:
mode:
authorlittleblack111 <jerrylam110209@gmail.com>2023-06-04 09:10:54 +0800
committerlittleblack111 <jerrylam110209@gmail.com>2023-06-04 09:10:54 +0800
commit61b5d7f614520cbc1bf9bae6994890eddffce09d (patch)
treee8ef70bbed56b3534014f1948baf51a6666c0dfe /idle.sh
parentc086caa833f0a51a2897a45284c592af1013f064 (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 7202fd7..ff833a4 100755
--- a/idle.sh
+++ b/idle.sh
@@ -1,10 +1,10 @@
-#!/usr/bin/env bash
+#!/usr/bin/bash
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)
- exec $HOME/scripts/auto-update.sh &
+ $HOME/scripts/auto-update.sh &
killall picom; bspcomp &
else
sleep 60