Skip to content

Commit

Permalink
Fixed indents
Browse files Browse the repository at this point in the history
  • Loading branch information
epid committed Jan 18, 2024
1 parent 815bd7c commit e8666bf
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions functions/_tide_item_pi_temp.fish
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

0 comments on commit e8666bf

Please sign in to comment.