mirror of
https://github.com/IlanCosman/tide.git
synced 2024-08-15 19:20:22 +03:00
Merge 8cac63f687
into fbca9587ae
This commit is contained in:
commit
eaaf4eedee
15
functions/_tide_item_pi_temp.fish
Normal file
15
functions/_tide_item_pi_temp.fish
Normal file
@ -0,0 +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 -fx tide_pi_temp_color $tide_pi_temp_hi_color
|
||||
else
|
||||
if test $t -ge 70
|
||||
set -fx tide_pi_temp_color $tide_pi_temp_mid_color
|
||||
else
|
||||
set -fx tide_pi_temp_color $tide_pi_temp_lo_color
|
||||
end
|
||||
end
|
||||
_tide_print_item pi_temp $t' ' $tide_pi_temp_icon
|
||||
end
|
||||
end
|
@ -63,6 +63,10 @@ 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_lo_color $_tide_color_dark_green
|
||||
tide_pi_temp_mid_color $_tide_color_gold
|
||||
tide_pi_temp_hi_color D70000
|
||||
tide_private_mode_bg_color 444444
|
||||
tide_private_mode_color FFFFFF
|
||||
tide_prompt_add_newline_before true
|
||||
@ -81,7 +85,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
|
||||
|
@ -49,6 +49,10 @@ 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_lo_color green
|
||||
tide_pi_temp_mid_color yellow
|
||||
tide_pi_temp_hi_color red
|
||||
tide_private_mode_bg_color black
|
||||
tide_private_mode_color brwhite
|
||||
tide_prompt_color_frame_and_connection brblack
|
||||
|
@ -63,6 +63,10 @@ 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_lo_color $_tide_color_dark_green
|
||||
tide_pi_temp_mid_color $_tide_color_gold
|
||||
tide_pi_temp_hi_color D70000
|
||||
tide_private_mode_bg_color normal
|
||||
tide_private_mode_color FFFFFF
|
||||
tide_prompt_add_newline_before true
|
||||
@ -81,7 +85,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 ' '
|
||||
|
@ -49,6 +49,10 @@ 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_lo_color green
|
||||
tide_pi_temp_mid_color yellow
|
||||
tide_pi_temp_hi_color red
|
||||
tide_private_mode_bg_color normal
|
||||
tide_private_mode_color brwhite
|
||||
tide_prompt_color_frame_and_connection brblack
|
||||
|
@ -63,6 +63,10 @@ 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_lo_color 4E9A06
|
||||
tide_pi_temp_mid_color $_tide_color_gold
|
||||
tide_pi_temp_hi_color D70000
|
||||
tide_private_mode_bg_color F1F3F4
|
||||
tide_private_mode_color 000000
|
||||
tide_prompt_add_newline_before true
|
||||
@ -81,7 +85,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
|
||||
|
@ -49,6 +49,10 @@ 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_lo_color green
|
||||
tide_pi_temp_mid_color yellow
|
||||
tide_pi_temp_hi_color red
|
||||
tide_private_mode_bg_color brwhite
|
||||
tide_private_mode_color black
|
||||
tide_prompt_color_frame_and_connection brblack
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user