diff options
| author | Andrew Guschin <saintruler@gmail.com> | 2021-03-28 17:24:17 +0400 |
|---|---|---|
| committer | Andrew Guschin <saintruler@gmail.com> | 2021-03-28 17:24:17 +0400 |
| commit | 27d44794a9589c705341509db3345f655d21e9c3 (patch) | |
| tree | c10cc2217402f948b58a7adfdd4172ffb907f7d7 | |
| parent | 3add9c63e8b72e8672db376698b2e754e96840e3 (diff) | |
Fixed typo in battery script
| -rwxr-xr-x | .local/bin/statusbar/battery | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.local/bin/statusbar/battery b/.local/bin/statusbar/battery index a70e49a..dfdc39c 100755 --- a/.local/bin/statusbar/battery +++ b/.local/bin/statusbar/battery @@ -5,7 +5,7 @@ do capacity=$(cat "$battery"/capacity) || break status=$(sed "s/[Dd]ischarging/discharging/;s/[Nn]ot charging/not_charging/;s/[Cc]harging/charging/;s/[Uu]nknown/unknown/;s/[Ff]ull/full/" "$battery"/status) - if [ "$status" = "charging"]; then + if [ "$status" = "charging" ]; then if [ "$capacity" -le 20 ]; then icon="" elif [ "$capacity" -le 40 ]; then @@ -37,5 +37,6 @@ do icon="" fi - printf "%s %s%% " "$icon" "$capacity" + # printf "%s %s%% " "$icon" "$capacity" + printf "Battery: %s%%" "$capacity" done | sed 's/ *$//' |