aboutsummaryrefslogtreecommitdiff
path: root/scripts/.local/bin/personal/syshealth
diff options
context:
space:
mode:
authordavidpkj <davidpenkow1@gmail.com>2023-09-10 11:59:43 +0200
committerdavidpkj <davidpenkow1@gmail.com>2023-09-10 11:59:43 +0200
commit5b9f5d92c4b6961049179598a235db60bed6ecbf (patch)
treecf177bf6aeb3e6341e40bfc2d96995c30abf8dd3 /scripts/.local/bin/personal/syshealth
parentc4c1a599bdd9595560b129f40f9c4654da073b04 (diff)
Update scripts
Diffstat (limited to 'scripts/.local/bin/personal/syshealth')
-rwxr-xr-xscripts/.local/bin/personal/syshealth6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/.local/bin/personal/syshealth b/scripts/.local/bin/personal/syshealth
index 48dcfa4..5c7ebe5 100755
--- a/scripts/.local/bin/personal/syshealth
+++ b/scripts/.local/bin/personal/syshealth
@@ -18,12 +18,12 @@ temperature_message=("Warning:" "Core TEMPERATURE critical")
if ((${local_percent::-2} <= 15)); then
if [[ "${local_state::-1}" == "Discharging" ]]; then
- /usr/local/bin/herbe " ${battery_message[0]} ${battery_message[1]}" &
+ /usr/bin/notify-send -u critical " ${battery_message[0]} ${battery_message[1]}" &
# espeak "${battery_message[0]}${battery_message[1]}"
fi
elif ((${local_percent::-2} >= 90)); then
if [[ "${local_state::-1}" == "Charging" ]]; then
- /usr/local/bin/herbe " ${battery_message[0]} ${battery_message[1]}" &
+ /usr/bin/notify-send -u critical " ${battery_message[0]} ${battery_message[1]}" &
# espeak "${battery_message[0]}${battery_message[1]}"
fi
fi
@@ -33,7 +33,7 @@ local_temp="$(echo $sensors_report | awk '{print $4}' | sed 's/+//g')"
local_temp_high="$(echo $sensors_report | awk '{print $7}' | sed 's/+//g')"
if ((${local_temp::-4} >= 90)); then
- /usr/local/bin/herbe " ${temperature_message[0]} ${temperature_message[1]}" &
+ /usr/bin/notify-send -u critical " ${temperature_message[0]} ${temperature_message[1]}" &
# espeak "${temperature_message[0]}${temperature_message[1]}"
fi