diff options
Diffstat (limited to 'bin/status.sh')
| -rwxr-xr-x | bin/status.sh | 6 |
1 files changed, 4 insertions, 2 deletions
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 "<span foreground=\"#ed8796\"></span> " | awk "{ print \$$idx }" ) ;; + "Discharging") symbol=$(echo "<span foreground=\"#ed8796\"></span>,,,,,,,,," | awk -F, "{ print \$$idx }" ) ;; "Charging" ) symbol=$(echo " " | awk "{ print \$$idx }" ) ;; "Full" ) symbol="" ;; esac |
