summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-07-12 11:28:04 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-07-12 11:28:04 +0800
commit5bc975391c78fc7e41f39d1fca0d36624a6634b6 (patch)
tree233e4457dff37c98304847d7d3eb418965f786c9
parentff46714d709131d73cc16e0d7fdba7a6990d9eda (diff)
made scripts lower priority for more optimal experience
-rwxr-xr-xaudio-autoAdjust.sh4
-rwxr-xr-xidle.sh2
2 files changed, 5 insertions, 1 deletions
diff --git a/audio-autoAdjust.sh b/audio-autoAdjust.sh
index 31a4b4c..370ab0e 100755
--- a/audio-autoAdjust.sh
+++ b/audio-autoAdjust.sh
@@ -1,5 +1,7 @@
#!/usr/bin/bash
+renice -n 19 $$
+
# sys-def vars
# DO NOT TOUCH
VOL=0
@@ -45,7 +47,7 @@ if [ "$1" ]; then
else
sleep 5
fi
- sleep 3
+ sleep 1
fi
done
exit 0
diff --git a/idle.sh b/idle.sh
index 297e5ab..2de0162 100755
--- a/idle.sh
+++ b/idle.sh
@@ -1,5 +1,7 @@
#!/usr/bin/bash
+renice -n 19 $$
+
# arguments with signal trap
#trap idle SIGQUIT
#trap stopidle SIGILL