On Wed, July 26, 2017 8:11 pm, Carlos Cardenas wrote:
> Howdy.
>
> 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.
>
> Using sysctl(1) on hw.sensors.acpiac* and hw.sensors.acpibat* gets me
> the info I need.
>
> Is there a utility in base that does this already?
>
> Not seeing anything in the base or ports, I wrote a simple c program to
> get me the info (https://github.com/cobracmder/battery).
>
> Would a utility of this nature be useful to other folks?
>
> +--+
> Carlos
>
I just did it with a script since wmii has it's own unique status bar
stuff. C is more efficent for sure, I might grab that. :)
Looks like x11/i3status would work.
Tim (I thought I was the last wmii user).
No comments:
Post a Comment