README.md
Battery for tmux in FreeBSD
This is is a little program to use in the tmux status bar to indicate the
current battery state a life.
It uses the FreeBSD sysctl
and is not compatible with Linux.
Compile with
cc -Os battery.c -o battery
In ~/.tmux.conf
setup the status bar like the following, with the correct path
to the executable.
set-option -g status-right "#(/path/to/battery)"