diff options
author | terminaldweller <thabogre@gmail.com> | 2022-10-08 08:25:21 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-10-08 08:25:21 +0000 |
commit | f9e8deec17ea1784b45e7ea620ed0fef49170359 (patch) | |
tree | 8c342caff8b39c58b1c91ca9426841e55e743357 /tmux | |
parent | update (diff) | |
download | scripts-f9e8deec17ea1784b45e7ea620ed0fef49170359.tar.gz scripts-f9e8deec17ea1784b45e7ea620ed0fef49170359.zip |
update
Diffstat (limited to 'tmux')
-rwxr-xr-x | tmux/date.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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]\ |