Awesome.

Looks like I overlooked apm(8).  That does the job indeed.

Thanks Jan and Manuel.

On 2017-07-27 02:40, Jan Stary wrote:
> 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'
> 

+--+
Carlos

Reply via email to