Commit Graph

3 Commits

Author SHA1 Message Date
Adrian Chadd
915b84e403 [battery] Update to not spit out debugging
Now that this actually seems to work, let's not spit out so much
debugging info.  It's not needed!

Whilst here quieten a debugging output.
2022-05-15 10:49:17 -07:00
Adrian Chadd
030f55fa2e [battery] Tie into the periodic function to update APM info
Tie into the periodic function so we can get the APM info.

For now it's not checking that some time has elapsed, the hope
is that it'll just be driven by md_main_loop() / 5 second select
timeout.
2022-05-14 22:08:55 -07:00
Adrian Chadd
18e858ae80 [amiwm] MVP for initial battery stuff
Totally not ready for prod, but at least I'm making progress
figuring out how to add extra bits to this thing.

* add a second widget to the menu bar, next to the title bar
* add a new module command to update the battery information
* add a freebsd specific Battery module, not linked into the
  build right now.
* amiwm will print out whenever we get battery information from the
  module.

Right now I'm trying to figure out how to get some kind of periodic
background event into the module main loop.  Launcher does it
using cx_broker(), but I dunno if I can adapt that pattern here.
2022-04-25 21:28:49 -07:00