aboutsummaryrefslogtreecommitdiff
path: root/i3blocks
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2019-02-09 14:23:12 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2019-02-09 14:23:12 +0100
commitd56404164f7a04cc6433a7693b56e18dec7ec994 (patch)
tree9fd5a6c32fe0e7fdd23a79b67641046526cbba8f /i3blocks
parent5701d5523c117e9223e5fd0086407dd74e148626 (diff)
downloadscripts-d56404164f7a04cc6433a7693b56e18dec7ec994.tar.gz
scripts-d56404164f7a04cc6433a7693b56e18dec7ec994.zip
sรกb feb 9 14:23:14 CET 2019
Diffstat (limited to 'i3blocks')
-rwxr-xr-xi3blocks/i3battery.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/i3blocks/i3battery.sh b/i3blocks/i3battery.sh
index 735b1b4..3232a48 100755
--- a/i3blocks/i3battery.sh
+++ b/i3blocks/i3battery.sh
@@ -31,6 +31,7 @@ fi
[ "$status" = "Charging" ] && color="#1fffaf"
-printf "<span color='%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=$(acpi | cut -d' ' -f5)
+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 ""