aboutsummaryrefslogtreecommitdiff
path: root/configs/xmobar_bat_msi.sh
diff options
context:
space:
mode:
Diffstat (limited to 'configs/xmobar_bat_msi.sh')
-rwxr-xr-xconfigs/xmobar_bat_msi.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/configs/xmobar_bat_msi.sh b/configs/xmobar_bat_msi.sh
index 9bb413f..cdaee43 100755
--- a/configs/xmobar_bat_msi.sh
+++ b/configs/xmobar_bat_msi.sh
@@ -3,12 +3,12 @@
echo -n "BAT:"
OUT=$(acpi -b | sed -n 's/Battery 0:\(.*\), \(.*\)%\(.*\)/\2/p')
-if [ $OUT -lt 80 ]; then
- echo "<fc=#00FF00>$OUT</fc>%"
+if [ $OUT -lt 10 ]; then
+ echo "<fc=#FF0000>$OUT</fc>%"
elif [ $OUT -lt 50 ]; then
echo "<fc=#FFFF00>$OUT</fc>%"
-elif [ $OUT -lt 10 ]; then
- echo "<fc=#FF0000>$OUT</fc>%"
+elif [ $OUT -lt 80 ]; then
+ echo "<fc=#00FF00>$OUT</fc>%"
else
echo "$OUT%"
fi