diff --git a/functions/_tide_item_pi_temp.fish b/functions/_tide_item_pi_temp.fish new file mode 100644 index 00000000..2e6b0169 --- /dev/null +++ b/functions/_tide_item_pi_temp.fish @@ -0,0 +1,6 @@ +function _tide_item_pi_temp + if type -q vcgencmd + vcgencmd measure_temp | string match -qr "(?[\d.]+)" + _tide_print_item pi_temp $t' ' $tide_pi_temp_icon + end +end diff --git a/functions/tide/configure/configs/classic.fish b/functions/tide/configure/configs/classic.fish index 8973cbc2..cfe5e110 100644 --- a/functions/tide/configure/configs/classic.fish +++ b/functions/tide/configure/configs/classic.fish @@ -63,6 +63,8 @@ tide_os_bg_color 444444 tide_os_color EEEEEE tide_php_bg_color 444444 tide_php_color 617CBE +tide_pi_temp_bg_color 444444 +tide_pi_temp_color $_tide_color_green tide_private_mode_bg_color 444444 tide_private_mode_color FFFFFF tide_prompt_add_newline_before true @@ -81,7 +83,7 @@ tide_pwd_markers .bzr .citc .git .hg .node-version .python-version .ruby-version tide_python_bg_color 444444 tide_python_color 00AFAF tide_right_prompt_frame_enabled true -tide_right_prompt_items status cmd_duration context jobs direnv node python rustc java php pulumi ruby go gcloud kubectl distrobox toolbox terraform aws nix_shell crystal elixir zig +tide_right_prompt_items status cmd_duration context jobs direnv node python rustc java php pulumi ruby go gcloud kubectl distrobox toolbox terraform aws nix_shell crystal elixir zig pi_temp tide_right_prompt_prefix  tide_right_prompt_separator_diff_color  tide_right_prompt_separator_same_color  diff --git a/functions/tide/configure/configs/classic_16color.fish b/functions/tide/configure/configs/classic_16color.fish index 670170f5..da89d55c 100644 --- a/functions/tide/configure/configs/classic_16color.fish +++ b/functions/tide/configure/configs/classic_16color.fish @@ -49,6 +49,8 @@ tide_os_bg_color black tide_os_color brwhite tide_php_bg_color black tide_php_color blue +tide_pi_temp_bg_color black +tide_pi_temp_color green tide_private_mode_bg_color black tide_private_mode_color brwhite tide_prompt_color_frame_and_connection brblack diff --git a/functions/tide/configure/configs/lean.fish b/functions/tide/configure/configs/lean.fish index a958a175..17f2f949 100644 --- a/functions/tide/configure/configs/lean.fish +++ b/functions/tide/configure/configs/lean.fish @@ -63,6 +63,8 @@ tide_os_bg_color normal tide_os_color normal tide_php_bg_color normal tide_php_color 617CBE +tide_pi_temp_bg_color normal +tide_pi_temp_color $_tide_color_green tide_private_mode_bg_color normal tide_private_mode_color FFFFFF tide_prompt_add_newline_before true @@ -81,7 +83,7 @@ tide_pwd_markers .bzr .citc .git .hg .node-version .python-version .ruby-version tide_python_bg_color normal tide_python_color 00AFAF tide_right_prompt_frame_enabled false -tide_right_prompt_items status cmd_duration context jobs direnv node python rustc java php pulumi ruby go gcloud kubectl distrobox toolbox terraform aws nix_shell crystal elixir zig +tide_right_prompt_items status cmd_duration context jobs direnv node python rustc java php pulumi ruby go gcloud kubectl distrobox toolbox terraform aws nix_shell crystal elixir zig pi_temp tide_right_prompt_prefix ' ' tide_right_prompt_separator_diff_color ' ' tide_right_prompt_separator_same_color ' ' diff --git a/functions/tide/configure/configs/lean_16color.fish b/functions/tide/configure/configs/lean_16color.fish index 16c2511d..4f16e5ac 100644 --- a/functions/tide/configure/configs/lean_16color.fish +++ b/functions/tide/configure/configs/lean_16color.fish @@ -49,6 +49,8 @@ tide_os_bg_color normal tide_os_color brwhite tide_php_bg_color normal tide_php_color blue +tide_pi_temp_bg_color normal +tide_pi_temp_color green tide_private_mode_bg_color normal tide_private_mode_color brwhite tide_prompt_color_frame_and_connection brblack diff --git a/functions/tide/configure/configs/rainbow.fish b/functions/tide/configure/configs/rainbow.fish index 60c15925..65497239 100644 --- a/functions/tide/configure/configs/rainbow.fish +++ b/functions/tide/configure/configs/rainbow.fish @@ -63,6 +63,8 @@ tide_os_bg_color $os_branding_bg_color tide_os_color $os_branding_color tide_php_bg_color 617CBE tide_php_color 000000 +tide_pi_temp_bg_color 2E3436 +tide_pi_temp_color green tide_private_mode_bg_color F1F3F4 tide_private_mode_color 000000 tide_prompt_add_newline_before true @@ -81,7 +83,7 @@ tide_pwd_markers .bzr .citc .git .hg .node-version .python-version .ruby-version tide_python_bg_color 444444 tide_python_color 00AFAF tide_right_prompt_frame_enabled true -tide_right_prompt_items status cmd_duration context jobs direnv node python rustc java php pulumi ruby go gcloud kubectl distrobox toolbox terraform aws nix_shell crystal elixir zig +tide_right_prompt_items status cmd_duration context jobs direnv node python rustc java php pulumi ruby go gcloud kubectl distrobox toolbox terraform aws nix_shell crystal elixir zig pi_temp tide_right_prompt_prefix  tide_right_prompt_separator_diff_color  tide_right_prompt_separator_same_color  diff --git a/functions/tide/configure/configs/rainbow_16color.fish b/functions/tide/configure/configs/rainbow_16color.fish index a040f584..84f70a38 100644 --- a/functions/tide/configure/configs/rainbow_16color.fish +++ b/functions/tide/configure/configs/rainbow_16color.fish @@ -49,6 +49,8 @@ tide_os_bg_color white tide_os_color black tide_php_bg_color blue tide_php_color black +tide_pi_temp_bg_color black +tide_pi_temp_color green tide_private_mode_bg_color brwhite tide_private_mode_color black tide_prompt_color_frame_and_connection brblack diff --git a/functions/tide/configure/icons.fish b/functions/tide/configure/icons.fish index 70611cdf..183f9679 100644 --- a/functions/tide/configure/icons.fish +++ b/functions/tide/configure/icons.fish @@ -19,6 +19,7 @@ tide_nix_shell_icon  tide_node_icon  # Actual nodejs glyph is harder to see tide_os_icon $os_branding_icon tide_php_icon  +tide_pi_temp_icon 󰔄 tide_private_mode_icon 󰗹 tide_prompt_icon_connection ' ' tide_pulumi_icon 