add load theshold

This commit is contained in:
Klas Mellbourn 2021-04-03 20:06:05 +02:00
parent a64ff719b3
commit cf7324e7be
No known key found for this signature in database
GPG Key ID: 9421003411C7A828
5 changed files with 9 additions and 1 deletions

View File

@ -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%.

View File

@ -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%.

View File

@ -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%.

View File

@ -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

View File

@ -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