# 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 ```sh cc -O2 battery.c -o battery ``` and copy or link the executable into `~/.local/bin`, which should be on your `$PATH`. Edit `~/.tmux.conf` and setup the status bar with something like ```tmux set-option -g status-right "#($HOME/.local/bin/battery) %a, %d %b %H:%M " ``` Reload tmux and enjoy! Miguel