bar
authorMart Lubbers <mart@martlubbers.net>
Thu, 15 Nov 2018 08:51:19 +0000 (09:51 +0100)
committerMart Lubbers <mart@martlubbers.net>
Thu, 15 Nov 2018 08:51:19 +0000 (09:51 +0100)
x/.local/bin/bar

index 76d6e06..459235d 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 batprefix=/sys/class/power_supply/BAT0
 if [ -f $batprefix/charge_full -a -f $batprefix/charge_now ]; then
-       bat="⚡$(echo $(cat $batprefix/charge_now)*100/$(cat $batprefix/charge_full) | bc)% |"
+       bat="⚡$(echo $(cat $batprefix/charge_now)*100/$(cat $batprefix/charge_full) | bc)% | "
 fi
 
 if ip -br a | grep -q '^wlp'; then