summaryrefslogtreecommitdiff
path: root/11_Colors.zsh
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2009-01-27 14:34:44 +0100
committerHugues Hiegel <hugues@hiegel.fr>2009-01-27 14:34:44 +0100
commita0e603bb21c919192cabdfa85dd919c230336c80 (patch)
treed02c1bfe42d036391ab55f7e47c0e5154c4ac72a /11_Colors.zsh
parentcb09265b096ad0fecd1e94232cd60a141a76f44b (diff)
[PROMPT] battery support
Diffstat (limited to '11_Colors.zsh')
-rw-r--r--11_Colors.zsh7
1 files changed, 6 insertions, 1 deletions
diff --git a/11_Colors.zsh b/11_Colors.zsh
index 9e69c34..d072e55 100644
--- a/11_Colors.zsh
+++ b/11_Colors.zsh
@@ -7,7 +7,7 @@
## You are encouraged to use, modify, and redistribute
## these files with or without this notice.
##
-typeset -A prompt_colors git_colors mail_colors correct_colors
+typeset -A prompt_colors git_colors mail_colors correct_colors battery_colors
# I hate kik00l0l colorized prompts, so I'm using a way to
# give a dominant color for each part of the prompt, each of
@@ -66,6 +66,11 @@ set_prompt_colors ()
prompt_colors[cmd]="$color[none]" # command prompt
prompt_colors[exec]="$color[none]" # command output
+ battery_colors[charging]="$color[cyan];$color[bold]"
+ battery_colors[full]="$color[none]"
+ battery_colors[uncharging]="$color[normal];$color[bold]"
+ battery_colors[critical]="$color[red];$color[bold]"
+
mail_colors[unread]="$color[yellow];$color[bold]" # mail received
mail_colors[listes]="$my_generic;$color[bold]" # less important mail received