-
Notifications
You must be signed in to change notification settings - Fork 470
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
[blocks] fix equal spacing in battery & sound & networkmanager #923
Conversation
@ammgws any thoughts? |
On mobile now so hard to review, however if your battery config was |
this does not touch the formatting directly. In #900 I wrote, that rewriting the formatting would be ideal. But this is a lot of work. Maybe it is worth it, but the solution i found is quiet good I think. So i decided to look at the current code and find out how to fix it, with the already given functions. So I adjusted the |
Ah ok, IIRC you wrote that it solved all your issues so I was trying to figure out how this PR solved that particular one. |
964981d
to
2403f77
Compare
the fix is done in a different way, then discussed in the issue. Sorry for the confusion. I discovered, that we would had to rewrite all blocks, which would definitely introduce bugs. Using the The only uneven spacing in-between happens if ethernet and wifi are used at the same time. But I consider this a minor issue (could be addressed in another PR). |
I tested with the below config but the output was the same before and after this PR. What am I not seeing? [[block]]
block = "battery"
driver = "sysfs"
device = "CMB1"
format = "{percentage}% {time}"
allow_missing = true
hide_missing = true after PR no icons before PR no icons |
The before PR |
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.
Sound block one confirmed fixed
OK I see why I couldn't reproduce the battery block one. Apparently "Not charging" is different to "Discharging" but I thought they were the same
|
My battery is taking too long to charge so I hardcoded it to 100% and confirmed the spacing bug is fixed: With this PR: |
I'll take your word for the networkmanager one. Thanks for your work! |
by interest: when is the next release planned? |
@Stunkymonkey From my experience a release happens about every 3-4 months depending on the amount of changes. Since the last one was just 2 weeks ago that might still be a while. |
I've starting putting together the release notes but I want to give it at least another couple of weeks or so (some people run the -git version so if there are any issues with recent changes then we should find out soon). |
no problem at all. Testing is always good. I was just curious. Thanks for all your awesome work 👍 |
related to #900 .
If the battery if fully charged, then the percentage does not have an additonal space.
Same if the volume if muted (and percentage not printed)