From 19ccfa64eb37541793c16e68ab7c519819d91ba6 Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Thu, 16 Jun 2016 22:33:09 -0700 Subject: [PATCH 1/2] Add option for non-verbose battery --- powerlevel9k.zsh-theme | 2 ++ 1 file changed, 2 insertions(+) diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index d5c2c8bb..c4b74c9c 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -419,6 +419,8 @@ prompt_battery() { set_default POWERLEVEL9K_BATTERY_VERBOSE true if [[ "$POWERLEVEL9K_BATTERY_VERBOSE" == true ]]; then message="$bat_percent%%$remain" + else + message="$bat_percent%%" fi # Draw the prompt_segment From d39e57f4d73b0c7c8bd4d7363e3bf98fdbde5dd2 Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Thu, 16 Jun 2016 22:35:53 -0700 Subject: [PATCH 2/2] Update README with POWERLEVEL9K_BATTERY_VERBOSE option --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b954d03e..5b4a45d1 100644 --- a/README.md +++ b/README.md @@ -177,6 +177,7 @@ requires `acpi` on Linux). |`POWERLEVEL9K_BATTERY_DISCONNECTED`|`$DEFAULT_COLOR`|Color to indicate absence of battery.| |`POWERLEVEL9K_BATTERY_LOW_THRESHOLD`|`10`|Threshold to consider battery level critical.| |`POWERLEVEL9K_BATTERY_LOW_COLOR`|`"red"`|Color to indicate critically low charge level.| +|`POWERLEVEL9K_BATTERY_VERBOSE`|`true`|Display time remaining next to battery level.| Note that you can [modify the `_FOREGROUND` color](https://github.com/bhilburn/powerlevel9k/wiki/Stylizing-Your-Prompt#segment-color-customization)