summaryrefslogtreecommitdiff
path: root/bat
diff options
context:
space:
mode:
Diffstat (limited to 'bat')
-rwxr-xr-xbat2
1 files changed, 1 insertions, 1 deletions
diff --git a/bat b/bat
index 7b0e3b3..d98974c 100755
--- a/bat
+++ b/bat
@@ -3,4 +3,4 @@
# Quick hack to display battery levels for the laptop
str="s/ Charging, /C/;s/ Discharging, /D/;s/ Unknown,/U/"
-acpi | cut -d: -f 2- | sed "$str" | cut -d\ -f 1-2;
+acpi | cut -d: -f 2- | sed "$str" | cut -d\ -f 1-2 | cut -d: -f 1-2;