mirror of
https://github.com/IlanCosman/tide.git
synced 2024-09-11 09:05:37 +03:00
Added missing flags to set
This commit is contained in:
parent
e8666bfac8
commit
8cac63f687
@ -2,12 +2,12 @@ function _tide_item_pi_temp
|
|||||||
if type -q vcgencmd
|
if type -q vcgencmd
|
||||||
vcgencmd measure_temp | string match -qr "(?<t>[\d.]+)"
|
vcgencmd measure_temp | string match -qr "(?<t>[\d.]+)"
|
||||||
if test $t -ge 80
|
if test $t -ge 80
|
||||||
set tide_pi_temp_color $tide_pi_temp_hi_color
|
set -fx tide_pi_temp_color $tide_pi_temp_hi_color
|
||||||
else
|
else
|
||||||
if test $t -ge 70
|
if test $t -ge 70
|
||||||
set tide_pi_temp_color $tide_pi_temp_mid_color
|
set -fx tide_pi_temp_color $tide_pi_temp_mid_color
|
||||||
else
|
else
|
||||||
set tide_pi_temp_color $tide_pi_temp_lo_color
|
set -fx tide_pi_temp_color $tide_pi_temp_lo_color
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
_tide_print_item pi_temp $t' ' $tide_pi_temp_icon
|
_tide_print_item pi_temp $t' ' $tide_pi_temp_icon
|
||||||
|
Loading…
Reference in New Issue
Block a user