- Notifications
You must be signed in to change notification settings - Fork711
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Multiple batteries support#4892
base:master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thank you for opening your first PR into Qtile!
If you have not heard from us in a while, please feel free to ping one of the devs or anyone who has commented on the PR, as sometimes things fall through the cracks.
You can also join the chat room for real-time discussion, see thecommunity links.
For details on what PRs might need to include before we will merge them please seethe docs.
Hi - thanks for the patches. Can you rebase these onto current git master so all the double-counted commits go away? |
Hmmm is this really needed? I have two batteries and just use two battery widgets |
Sniki commentedJun 21, 2024
I would really like this to be merged please. This was a request of mine months ago, i have many thinkpads with two batteries, yes i have been using two widgets for that but it makes space problems on the bar and it’s a bit confusing with two to know the exact eta for time left on battery, with this, i can get a single widget that shows me the time left from both batteries and have one extra space for another widget that i could really use.
Thanks ! |
Hi Tych0 Thanks and kind regards |
Right now your branch has multiple commits that already exist on master. I don't know how you got into this state, but I think you can fix it via the following:
What we need to land this is a clean git history on the branch. Can you also address@jwijenbergh's comment? In particular, can this be addressed with adding some margin tuning vs. having this for loop over batteries? |
Hi tych0
I loop over the batteries but i only get the info of the selected battery. In the LinuxBattery class
In the FreeBSD class:
|
I have some comments on this too and will post them when I get a chance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Sorry for the delay. A couple of comments here.
I can't comment on appropriateness of FreeBSD changes.
Be patient. I have to install a linux distribution in my laptop and i have to be sure that when i come back to freebsd i have all my conf files...;) |
Hi All, |
Did you mean to close this? |
Hi, Thanks and kind regards. |
This PR is stale because it has been open 90 days with no activity. Remove the |
Sniki commentedJan 28, 2025
What is left for this PR to be ready for merge ? CC@fjpavon |
Sorry i was focused in other stuff and i forgot that it was not finisthed. |
changed to add multiple batteries support
resolved CHANGELOG conflict
The widget can manage all the batteries in the computer: BAT0, BAT1,... and calculate the global information: % charge, time...
It's available for FreeBSD and Linux
By default all the batteries are checked. I modified the battery number default value to -1 because all the batteries are numbered with values equal or grater than 0 and if you want to get all the batteries you have to use negative numbers.
I changed the test_battery because i use the battery number to get the path to the info files.