On Jul 26 17:11:02, cardena...@gmail.com wrote: > Been using my toughbook with OpenBSD more and more and one of the things > that I seem to be missing is simple battery status (percent remaining, > if it's being charged, etc...) in my tmux(1) or wmii(1) session.
Here is a two-line ~/.tmux.conf which uses apm(8) to display the battery status: set -g status-interval 60 set -g status-right '#h | #(test `apm -b` -lt 4 && echo "`apm -l`%% | ")%H:%M'