Fix spacing when battery percentage isn't available
This commit is contained in:
parent
ba6412a5b9
commit
2607300beb
1 changed files with 3 additions and 2 deletions
|
@ -35,7 +35,8 @@ battery_percent()
|
|||
# Check OS
|
||||
case $(uname -s) in
|
||||
Linux)
|
||||
linux_acpi percent
|
||||
percent=$(linux_acpi percent)
|
||||
[ -n "$percent" ] && echo " $percent"
|
||||
;;
|
||||
|
||||
Darwin)
|
||||
|
|
Loading…
Reference in a new issue