aboutsummaryrefslogtreecommitdiff
path: root/i3blocks/i3battery.sh
diff options
context:
space:
mode:
authorInigo Gutierrez <inigogf.95@gmail.com>2019-03-07 10:28:44 +0000
committerInigo Gutierrez <inigogf.95@gmail.com>2019-03-07 10:28:44 +0000
commit6f05b0ca6b3fa89cc2203839ad3096be4ffe726a (patch)
tree3c4cc52196518b4d2ac42686d789f5e2fe15711e /i3blocks/i3battery.sh
parent833b8e5015be7fc10025a0815567d9eab8ed9713 (diff)
downloadscripts-6f05b0ca6b3fa89cc2203839ad3096be4ffe726a.tar.gz
scripts-6f05b0ca6b3fa89cc2203839ad3096be4ffe726a.zip
Script changes tinkering with Arch.
Diffstat (limited to 'i3blocks/i3battery.sh')
-rwxr-xr-xi3blocks/i3battery.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/i3blocks/i3battery.sh b/i3blocks/i3battery.sh
index 3232a48..1e8d749 100755
--- a/i3blocks/i3battery.sh
+++ b/i3blocks/i3battery.sh
@@ -31,7 +31,7 @@ fi
[ "$status" = "Charging" ] && color="#1fffaf"
-remaining=$(acpi | cut -d' ' -f5)
+remaining=$(acpi | cut -d' ' -f5 | cut -d':' -f-2)
printf "<span color='%s'>%s%s%s (%s)</span>" "$color" "$(echo "$status" | sed -e "s/,//g;s/Discharging/🔋/;s/Charging/🔌/;s/Unknown/♻️/;s/Full/⚡/;s/ 0*/ /g;s/ :/ /g")" "$warn" "$(echo "$capacity" | sed -e 's/$/%/')" "$remaining"
echo ""