From a92dd8535a155e409c2c6f903285f3856d8967de Mon Sep 17 00:00:00 2001 From: joestandring Date: Sat, 8 Jun 2019 17:44:49 +0100 Subject: [PATCH] Change dwm_battery format --- README.md | 2 +- bar-functions/dwm_battery.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a3c2125..ed638ac 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/bar-functions/dwm_battery.sh b/bar-functions/dwm_battery.sh index e46c5d0..6c139cf 100755 --- a/bar-functions/dwm_battery.sh +++ b/bar-functions/dwm_battery.sh @@ -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 }