diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2019-02-09 14:23:12 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2019-02-09 14:23:12 +0100 |
commit | d56404164f7a04cc6433a7693b56e18dec7ec994 (patch) | |
tree | 9fd5a6c32fe0e7fdd23a79b67641046526cbba8f /i3blocks | |
parent | 5701d5523c117e9223e5fd0086407dd74e148626 (diff) | |
download | scripts-d56404164f7a04cc6433a7693b56e18dec7ec994.tar.gz scripts-d56404164f7a04cc6433a7693b56e18dec7ec994.zip |
sรกb feb 9 14:23:14 CET 2019
Diffstat (limited to 'i3blocks')
-rwxr-xr-x | i3blocks/i3battery.sh | 3 |
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 "" |