Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Realtime battery handling #6

Open
justinhj opened this issue Aug 18, 2022 · 0 comments
Open

Realtime battery handling #6

justinhj opened this issue Aug 18, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@justinhj
Copy link
Owner

Currently the update is periodic. This is a big stretch goal to instead of polling the battery status by running a system process, instead communicate over RPC with a custom written executable (that is of course, cross platform), that can react to battery events such as percent changes and ac power connection (even battery insert and remove).

Roughly it looks like this...

  1. Plugin requires a binary built for the platform (similar to how an lsp server may work)
  2. The client launches the binary and listens to messages from it
  3. On battery change message it updates the battery_status
@justinhj justinhj added the enhancement New feature or request label Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant