dotfiles/localbin/.local/bin/batstatus

6 lines
112 B
Bash
Executable File

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