-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
function _tide_item_pi_temp | ||
if type -q vcgencmd | ||
vcgencmd measure_temp | string match -qr "(?<t>[\d.]+)" | ||
if test $t -ge 80 | ||
set tide_pi_temp_color $tide_pi_temp_hi_color | ||
else | ||
if test $t -ge 70 | ||
set tide_pi_temp_color $tide_pi_temp_mid_color | ||
else | ||
set tide_pi_temp_color $tide_pi_temp_lo_color | ||
end | ||
if type -q vcgencmd | ||
vcgencmd measure_temp | string match -qr "(?<t>[\d.]+)" | ||
if test $t -ge 80 | ||
set tide_pi_temp_color $tide_pi_temp_hi_color | ||
else | ||
if test $t -ge 70 | ||
set tide_pi_temp_color $tide_pi_temp_mid_color | ||
else | ||
set tide_pi_temp_color $tide_pi_temp_lo_color | ||
end | ||
end | ||
_tide_print_item pi_temp $t' ' $tide_pi_temp_icon | ||
end | ||
_tide_print_item pi_temp $t' ' $tide_pi_temp_icon | ||
end | ||
end |