From 71c6843cb47fec88baec15bdbd633b47368a4f7e Mon Sep 17 00:00:00 2001 From: romkatv Date: Thu, 29 Aug 2019 18:36:36 +0200 Subject: [PATCH] add ram and load --- config/p10k-classic.zsh | 20 ++++++++++++++++++++ config/p10k-lean.zsh | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/config/p10k-classic.zsh b/config/p10k-classic.zsh index ad3b14f1..325bcad3 100644 --- a/config/p10k-classic.zsh +++ b/config/p10k-classic.zsh @@ -61,6 +61,8 @@ fi context # user@host nordvpn # nordvpn connection status, linux only (https://nordvpn.com/) ranger # ranger shell (https://github.com/ranger/ranger) + # ram # free RAM + # load # CPU load # time # current time # =========================[ Line #2 ]========================= newline @@ -453,6 +455,24 @@ fi # Custom icon. # typeset -g POWERLEVEL9K_RANGER_VISUAL_IDENTIFIER_EXPANSION='⭐' + ######################################[ ram: free RAM ]####################################### + # RAM color. + typeset -g POWERLEVEL9K_RAM_FOREGROUND=66 + # Custom icon. + # typeset -g POWERLEVEL9K_RAM_VISUAL_IDENTIFIER_EXPANSION='⭐' + + ######################################[ 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 + # Load color when load is under 50%. + typeset -g POWERLEVEL9K_LOAD_NORMAL_FOREGROUND=66 + # Load color when load is between 50% and 70%. + typeset -g POWERLEVEL9K_LOAD_WARNING_FOREGROUND=178 + # Load color when load is over 70%. + typeset -g POWERLEVEL9K_LOAD_CRITICAL_FOREGROUND=166 + # Custom icon. + # typeset -g POWERLEVEL9K_LOAD_VISUAL_IDENTIFIER_EXPANSION='⭐' + ####################################[ context: user@host ]#################################### # Default context color. typeset -g POWERLEVEL9K_CONTEXT_FOREGROUND=180 diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh index 833cb6d3..627bc5f4 100644 --- a/config/p10k-lean.zsh +++ b/config/p10k-lean.zsh @@ -61,6 +61,8 @@ fi context # user@host nordvpn # nordvpn connection status, linux only (https://nordvpn.com/) ranger # ranger shell (https://github.com/ranger/ranger) + # ram # free RAM + # load # CPU load # time # current time # =========================[ Line #2 ]========================= newline @@ -436,6 +438,24 @@ fi # Custom icon. # typeset -g POWERLEVEL9K_RANGER_VISUAL_IDENTIFIER_EXPANSION='⭐' + ######################################[ ram: free RAM ]####################################### + # RAM color. + typeset -g POWERLEVEL9K_RAM_FOREGROUND=66 + # Custom icon. + # typeset -g POWERLEVEL9K_RAM_VISUAL_IDENTIFIER_EXPANSION='⭐' + + ######################################[ 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 + # Load color when load is under 50%. + typeset -g POWERLEVEL9K_LOAD_NORMAL_FOREGROUND=66 + # Load color when load is between 50% and 70%. + typeset -g POWERLEVEL9K_LOAD_WARNING_FOREGROUND=178 + # Load color when load is over 70%. + typeset -g POWERLEVEL9K_LOAD_CRITICAL_FOREGROUND=166 + # Custom icon. + # typeset -g POWERLEVEL9K_LOAD_VISUAL_IDENTIFIER_EXPANSION='⭐' + ####################################[ context: user@host ]#################################### # Default context color. typeset -g POWERLEVEL9K_CONTEXT_FOREGROUND=180