Skip to content

Commit

Permalink
Battery tweak: Move charging/discharging symbol to the end
Browse files Browse the repository at this point in the history
  • Loading branch information
Anachron committed Dec 28, 2015
1 parent e5eb939 commit 007ffa6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions blocks/battery
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ BATTERY_POWER=$(echo "${BATTERY_INFO}" | grep -o '[0-9]\+%' | tr -d '%')
URGENT_VALUE=10

if [[ "${BATTERY_STATE}" = "Charging" ]]; then
echo "+${BATTERY_POWER}%"
echo "+${BATTERY_POWER}%"
echo "${BATTERY_POWER}%+"
echo "${BATTERY_POWER}%+"
echo ""
elif [[ "${BATTERY_STATE}" = "Discharging" ]]; then
echo "-${BATTERY_POWER}%"
echo "-${BATTERY_POWER}%"
echo "-${BATTERY_POWER}%-"
echo "-${BATTERY_POWER}%-"
echo ""
else
echo "${BATTERY_POWER}%"
Expand Down

0 comments on commit 007ffa6

Please sign in to comment.