From 51f58447bcb7d1ffb500c815e165ed1906a7fd28 Mon Sep 17 00:00:00 2001 From: Alexei Bezborodov Date: Fri, 28 Feb 2025 14:25:28 +0300 Subject: [PATCH] Sens --- Script/utils | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Script/utils b/Script/utils index 39fdd95..83190e9 100644 --- a/Script/utils +++ b/Script/utils @@ -47,7 +47,7 @@ mkalias_with_prefix 'check_internet_script' sensors_one_line() { - sens=$(sensors | grep -E 'power1|temp1' | grep -o -E ":\s*([\+0-9\.°C]+)") && sens=${sens// /} && echo ${sens:1} + sens=$(sensors | grep -E 'power1|temp1|Core 0|fan|Package' | grep -o -E ":\s*([\+0-9\.°]+)" | sed 's/\([0-9]*\)[\.][0-9]*/\1/g') && sens=${sens// /} && sens=${sens//:/} && echo ${sens} } mkalias_with_prefix 'sensors_one_line' @@ -57,4 +57,8 @@ reload_bashrc() } mkalias_with_prefix 'reload_bashrc' - +check_seconds() +{ + sec=$(date +%s) && if [[ "${sec: -2}" == "00" ]]; then echo "check"; fi; echo ${sec: -2} +} +mkalias_with_prefix 'check_seconds'