aboutsummaryrefslogtreecommitdiff
path: root/config/p10k-lean.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-07-20 16:40:23 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-07-20 16:40:23 +0300
commita0b4e481d8f92132e7c919be524a319df5fe93ca (patch)
treefa6130b9f9677d6ec2c65d8da51ca74d0aa22a16 /config/p10k-lean.zsh
parentfa0c4478174de86c76ba7c45b4662c2d3cdfc1e6 (diff)
add battery
Diffstat (limited to 'config/p10k-lean.zsh')
-rw-r--r--config/p10k-lean.zsh17
1 files changed, 17 insertions, 0 deletions
diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh
index 40481371..da5e0915 100644
--- a/config/p10k-lean.zsh
+++ b/config/p10k-lean.zsh
@@ -49,6 +49,7 @@ fi
# =========================[ Line #2 ]=========================
newline
# public_ip # public IP address
+ # battery # internal battery
# time # current time
)
@@ -319,6 +320,22 @@ fi
# Public IP color.
typeset -g POWERLEVEL9K_PUBLIC_IP_FOREGROUND=144
+ # Show battery in red when it's below this level and not connected to power supply.
+ typeset -g POWERLEVEL9K_BATTERY_LOW_THRESHOLD=20
+ typeset -g POWERLEVEL9K_BATTERY_LOW_FOREGROUND=1
+ # Show battery in green when it's charging.
+ typeset -g POWERLEVEL9K_BATTERY_CHARGING_FOREGROUND=2
+ # Show battery in yellow when not connected to power supply.
+ typeset -g POWERLEVEL9K_BATTERY_DISCONNECTED_FOREGROUND=3
+ # Battery pictograms going from low to high level of charge.
+ typeset -g POWERLEVEL9K_BATTERY_STAGES='▁▂▃▄▅▆▇'
+ # Display battery pictogram on black background.
+ typeset -g POWERLEVEL9K_BATTERY_VISUAL_IDENTIFIER_EXPANSION='%0K${P9K_VISUAL_IDENTIFIER}%k'
+ # Don't show battery when it's fully charged and connected to power supply.
+ typeset -g POWERLEVEL9K_BATTERY_CHARGED_{CONTENT,VISUAL_IDENTIFIER}_EXPANSION=
+ # Don't show the remaining time to charge/discharge.
+ typeset -g POWERLEVEL9K_BATTERY_VERBOSE=false
+
# Current time color.
typeset -g POWERLEVEL9K_TIME_FOREGROUND=66
# Format for the current time: 09:51:02. See `man 3 strftime`.