diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-12-07 19:57:05 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-02-11 18:59:43 -0500 |
commit | 07ec79433657e754965dd2eb7a324512d46a72ee (patch) | |
tree | bd95000d24a373a9c1b9a6a7186d2a7b98cd3d14 /.config/wmii-hg/rbar_acpi | |
parent | ddb7692a2f93dca1ebf39a8ea7a710363aea516a (diff) |
rbar: be more compact
Diffstat (limited to '.config/wmii-hg/rbar_acpi')
-rwxr-xr-x | .config/wmii-hg/rbar_acpi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.config/wmii-hg/rbar_acpi b/.config/wmii-hg/rbar_acpi index 6e3e6e5..7c1d18b 100755 --- a/.config/wmii-hg/rbar_acpi +++ b/.config/wmii-hg/rbar_acpi @@ -15,7 +15,8 @@ update() { -e 's/\s*remaining//g' \ -e 's/\s*until charged//g' \ -e 's/charging at zero rate - will never fully charge./∞/g' \ - -e 's/\s*ok,\s*//g' | + -e 's/\s*ok,\s*//g' \ + -e 's/\s+//g' | cat -n | while read -r n line; do printf "label %s\n" "$line" | write "${id}.${n}" done |