diff options
| -rwxr-xr-x | .a/battery-status.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.a/battery-status.sh b/.a/battery-status.sh index 2ad7157..671c243 100755 --- a/.a/battery-status.sh +++ b/.a/battery-status.sh @@ -10,9 +10,9 @@ upower -i /org/freedesktop/UPower/devices/battery_BAT0 > /tmp/BAT0 [ "$(awk '/native-path/{print $2}' /tmp/BAT0)" = '(null)' ] && exit bat_state="$(awk '/state/{print substr($2, 1, 1)}' /tmp/BAT0)" -[ $bat_state = 'c' ] && bat_power_ind='' || \ +[ $bat_state = 'c' ] && bat_power_ind='' || (\ [ $bat_state = 'd' ] && bat_power_ind='' || \ - bat_power_ind='' + bat_power_ind='' ) bat_per="$(awk '/percentage/{print strtonum($2)}' /tmp/BAT0)" |
