Giter Club home page Giter Club logo

Comments (10)

gpakosz avatar gpakosz commented on May 14, 2024

Which OS are you using?

from .tmux.

yuntsewu avatar yuntsewu commented on May 14, 2024

from .tmux.

gpakosz avatar gpakosz commented on May 14, 2024

So all in all, I guess I should average charge of both batteries. What do you think?

from .tmux.

yuntsewu avatar yuntsewu commented on May 14, 2024

Yes, average would be great.
I made a branch that's not really working yet. Still have to tweak the code.
https://github.com/yuntsewu/.tmux/commit/a25ba
First time trying to contribute so is probably not in the right direction.

from .tmux.

gpakosz avatar gpakosz commented on May 14, 2024

I added a Linux implementation to the multiple-batteries branch. Can you give it a spin?

Also, if you happen to have a laptop with more than a single battery and running windows, I'm curious about the output of the following commands:

wmic path Win32_Battery
wmic path Win32_Battery Get BatteryStatus
wmic path Win32_Battery Get EstimatedChargeRemaining /format:list

from .tmux.

yuntsewu avatar yuntsewu commented on May 14, 2024

It didn't work
2017-04-16-151529_1920x1080_scrot
looks like you are trying to grab data from /tmp/sys/class/power_supply/BAT$batid, it doesn't exist on my (fedora 25) os

Data is retrieved from:

$ cat /sys/class/power_supply/BAT*/capacity
99
85

from .tmux.

gpakosz avatar gpakosz commented on May 14, 2024

damn forgot to remove the /tmp/ prefix, I was just simulating things. Fixed, please pull.

from .tmux.

yuntsewu avatar yuntsewu commented on May 14, 2024

lol, working now
2017-04-16-153136_1920x1080_scrot

Two thumbs up, thanks for the quick respond. Now I can use this in full screen in less distracted mode

from .tmux.

gpakosz avatar gpakosz commented on May 14, 2024

Since I can't get my hands on a laptop with two batteries, do you happen to know people running Windows with two batteries?

from .tmux.

yuntsewu avatar yuntsewu commented on May 14, 2024

hmm, because you want to test the same feature change on Windows...
Popular laptops today would be surface book and Thinkpad T or P series (which I use) that has two batteries.

I don't know anyone who run those and Windows around me. But people who use the models above would be the one's you want to hunt down.

from .tmux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.