README.md
561 Bytes
Battery indicator for tmux/FreeBSD
This is is a little C program to indicate the current battery state and
percentage in the tmux status bar.
It uses the FreeBSD sysctl
and is not compatible with Linux.
Requires a font that includes utf-8 symbols. Iosevka and JetBrains Mono from NerdFonts have been tested.
Compile with
cc -Os battery.c -o battery
and copy the executable to ~/.local/bin
.
In ~/.tmux.conf
setup the status bar with something like
set-option -g status-right "#($HOME/.local/bin/battery) %a, %d %b %H:%M "