diff --git a/config/p10k-classic.zsh b/config/p10k-classic.zsh index 123ae9c1..18819d4f 100644 --- a/config/p10k-classic.zsh +++ b/config/p10k-classic.zsh @@ -780,6 +780,8 @@ ######################################[ load: CPU load ]###################################### # Show average CPU load over this many last minutes. Valid values are 1, 5 and 15. typeset -g POWERLEVEL9K_LOAD_WHICH=5 + # don't show load below this threshold percentage + typeset -g POWERLEVEL9K_LOAD_THRESHOLD=40 # Load color when load is under 50%. typeset -g POWERLEVEL9K_LOAD_NORMAL_FOREGROUND=66 # Load color when load is between 50% and 70%. diff --git a/config/p10k-lean-8colors.zsh b/config/p10k-lean-8colors.zsh index 4f9d8938..2928a01f 100644 --- a/config/p10k-lean-8colors.zsh +++ b/config/p10k-lean-8colors.zsh @@ -761,6 +761,8 @@ ######################################[ load: CPU load ]###################################### # Show average CPU load over this many last minutes. Valid values are 1, 5 and 15. typeset -g POWERLEVEL9K_LOAD_WHICH=5 + # don't show load below this threshold percentage + typeset -g POWERLEVEL9K_LOAD_THRESHOLD=40 # Load color when load is under 50%. typeset -g POWERLEVEL9K_LOAD_NORMAL_FOREGROUND=2 # Load color when load is between 50% and 70%. diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh index c3ecb09d..57e9d7ff 100644 --- a/config/p10k-lean.zsh +++ b/config/p10k-lean.zsh @@ -757,6 +757,8 @@ ######################################[ load: CPU load ]###################################### # Show average CPU load over this many last minutes. Valid values are 1, 5 and 15. typeset -g POWERLEVEL9K_LOAD_WHICH=5 + # don't show load below this threshold percentage + typeset -g POWERLEVEL9K_LOAD_THRESHOLD=40 # Load color when load is under 50%. typeset -g POWERLEVEL9K_LOAD_NORMAL_FOREGROUND=66 # Load color when load is between 50% and 70%. diff --git a/config/p10k-rainbow.zsh b/config/p10k-rainbow.zsh index a47fb18e..7a4177df 100644 --- a/config/p10k-rainbow.zsh +++ b/config/p10k-rainbow.zsh @@ -807,6 +807,8 @@ ######################################[ load: CPU load ]###################################### # Show average CPU load over this many last minutes. Valid values are 1, 5 and 15. typeset -g POWERLEVEL9K_LOAD_WHICH=5 + # don't show load below this threshold percentage + typeset -g POWERLEVEL9K_LOAD_THRESHOLD=40 # Load color when load is under 50%. typeset -g POWERLEVEL9K_LOAD_NORMAL_FOREGROUND=0 typeset -g POWERLEVEL9K_LOAD_NORMAL_BACKGROUND=2 diff --git a/internal/p10k.zsh b/internal/p10k.zsh index a64fe085..99fc319f 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -7200,7 +7200,7 @@ _p9k_init_params() { 15) _POWERLEVEL9K_LOAD_WHICH=3;; *) _POWERLEVEL9K_LOAD_WHICH=2;; esac - _p9k_declare -i POWERLEVEL9K_LOAD_THRESHOLD 50 + _p9k_declare -i POWERLEVEL9K_LOAD_THRESHOLD 40 _p9k_declare -b POWERLEVEL9K_NODE_VERSION_PROJECT_ONLY 0 _p9k_declare -b POWERLEVEL9K_PHP_VERSION_PROJECT_ONLY 0 _p9k_declare -b POWERLEVEL9K_DOTNET_VERSION_PROJECT_ONLY 1