From a11b838116ec804b195238a4895a16bfb8a52c44 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Mon, 13 Aug 2012 10:02:10 +0200 Subject: [PATCH] Change charging battery symbol and color --- liquidprompt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/liquidprompt b/liquidprompt index 4f99ed3..640b4d1 100755 --- a/liquidprompt +++ b/liquidprompt @@ -667,6 +667,7 @@ __battery() __battery_color() { local mark="⌁" + local chargingmark="⏚" local bat local ret bat=$(__battery) @@ -677,18 +678,18 @@ __battery_color() return elif [[ $ret == 3 && $bat != 100 ]] ; then # charging and above threshold and not 100% - # green ⌁ - echo -ne "${GREEN}$mark${NO_COL}" + # green ⏚ + echo -ne "${GREEN}$chargingmark${NO_COL}" return elif [[ $ret == 2 ]] ; then # charging but under threshold - # yellow ⌁ - echo -ne "${YELLOW}$mark${NO_COL}" + # yellow ⏚ + echo -ne "${YELLOW}$chargingmark${NO_COL}" return elif [[ $ret == 1 ]] ; then # discharging but above threshold - # red ⌁ - echo -ne "${RED}$mark${NO_COL}" + # yellow ⌁ + echo -ne "${YELLOW}$mark${NO_COL}" return # discharging and under threshold