From 572640d0d06ece1e2c5556dea2ee2227e5816a23 Mon Sep 17 00:00:00 2001 From: Sam Nystrom Date: Sun, 16 Apr 2023 15:38:21 -0500 Subject: fix(bin): fix low battery on statusbar --- bin/status.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/status.sh b/bin/status.sh index 24f0f59..32794ea 100755 --- a/bin/status.sh +++ b/bin/status.sh @@ -1,4 +1,6 @@ -#!/bin/sh -eu +#!/bin/sh + +set -eu pulseaudio() { volume=$(pactl get-sink-volume @DEFAULT_SINK@ \ @@ -33,7 +35,7 @@ battery() { idx=$(( ($capacity - 1) / 10 )) case "$status" in - "Discharging") symbol=$(echo "󰂃         " | awk "{ print \$$idx }" ) ;; + "Discharging") symbol=$(echo "󰂃,,,,,,,,," | awk -F, "{ print \$$idx }" ) ;; "Charging" ) symbol=$(echo "         " | awk "{ print \$$idx }" ) ;; "Full" ) symbol="" ;; esac -- cgit v1.2.3