dotfiles/localbin/.local/bin/batstatus

6 lines
112 B
Plaintext
Raw Normal View History

#!/bin/sh
# get battery percentage and current time remaining
acpi | awk -F '[, :]' '{print $6 " ~" $8":"$9}'