From f9e8deec17ea1784b45e7ea620ed0fef49170359 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Sat, 8 Oct 2022 11:55:21 +0330 Subject: update --- tmux/date.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tmux/date.sh') diff --git a/tmux/date.sh b/tmux/date.sh index 9406561..f72cad0 100755 --- a/tmux/date.sh +++ b/tmux/date.sh @@ -22,8 +22,8 @@ if [ ! $? ]; then else WEATHER="#[fg=colour255 bg=colour32]"$WEATHER_INFO fi -CPU_TEMP=$(sensors | grep temp1 | head -n 1 | awk '{print $2}') -CPU_SECTION="#[fg=colour36 bg=colour16]$SEPARATOR_LEFT_BOLD#[fg=colour16 bg=colour36]$CPU_TEMP" +CPU_TEMP=$(sensors -j | jq .["\"coretemp-isa-0000\""]."\"Package id 0\"".temp1_input) +CPU_SECTION="#[fg=colour36 bg=colour16]$SEPARATOR_LEFT_BOLD#[fg=colour16 bg=colour36]$CPU_TEMP C" BATTERY=$(upower -i "$(upower -e | grep 'BAT')" | grep -E "percentage" | awk '{print $2}') echo "$CPU_SECTION#[fg=colour32 bg=colour36]\ -- cgit v1.2.3