dotfiles/localbin/.local/bin/batstatus

7 lines
150 B
Bash
Executable File

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