1
0
src/niceties/battery.linux

7 lines
175 B
Plaintext
Raw Normal View History

2022-08-13 14:29:04 -06:00
#!/bin/sh
# this is a dirty hack.
# acpi | awk '{print $4}' will print the battery percentage,
# and s/,$// strips the trailing comma.
acpi | awk '{print $4}' | sed 's/,$//'