Browse Source

Change dwm_battery format

patch-fontkeys
joestandring 5 years ago
parent
commit
a92dd8535a
2 changed files with 4 additions and 4 deletions
  1. +1
    -1
      README.md
  2. +3
    -3
      bar-functions/dwm_battery.sh

+ 1
- 1
README.md View File

@ -43,7 +43,7 @@ Dependencies: ```pamixer```
### dwm_battery
Displays battery level and status
```
[🔋 100 full]
[🔋 100% full]
```
### dwm_countdown
Displays the status of [countdown](https://github.com/joestandring/countdown)


+ 3
- 3
bar-functions/dwm_battery.sh View File

@ -11,12 +11,12 @@ dwm_battery () {
if [ "$IDENTIFIER" = "unicode" ]; then
if [ "$STATUS" = "Charging" ]; then
printf "[🔌 %s %s]\n" "$CHARGE" "$STATUS"
printf "[🔌 %s%% %s]\n" "$CHARGE" "$STATUS"
else
printf "[🔋 %s %s]\n" "$CHARGE" "$STATUS"
printf "[🔋 %s %%%s]\n" "$CHARGE" "$STATUS"
fi
else
printf "[BAT %s %s]\n" "$CHARGE" "$STATUS"
printf "[BAT %s%% %s]\n" "$CHARGE" "$STATUS"
fi
}


Loading…
Cancel
Save