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

Custom character for meter (instead of "|") #647

Open
BenBE opened this issue Jun 6, 2021 · 9 comments
Open

Custom character for meter (instead of "|") #647

BenBE opened this issue Jun 6, 2021 · 9 comments
Labels
enhancement Extension or improvement to existing feature good first issue 🥇 Good for newcomers Hacktoberfest Issues for DigitalOcean Hacktoberfest new feature Completely new feature

Comments

@BenBE
Copy link
Member

BenBE commented Jun 6, 2021

It would be nice if the character that makes the meter could be changed from "|" to the one the user prefers. Is there ANY way to change that ugly default pipe for a better visual character with more body defined by us? Thanks in advance.

Originally posted by @Noctumsempra in #526 (comment)

@BenBE BenBE added enhancement Extension or improvement to existing feature needs-discussion 🤔 Changes need to be discussed and require consent new feature Completely new feature labels Jun 6, 2021
@Noctumsempra
Copy link

Hello again. Is there any new about this "new feature"?

Can these bars' char be some character being READ from ~/.config/htoprc via one of its config pairs for example?
I wish I could do this myself, it doesn't look difficult to implement, and it would visually help any of us with burden in the eyes to be able to chose a solid █ (U+2588) instead of the THIN UGLY PIPE.

Thanks.

@BenBE BenBE added good first issue 🥇 Good for newcomers Hacktoberfest Issues for DigitalOcean Hacktoberfest and removed needs-discussion 🤔 Changes need to be discussed and require consent labels Dec 21, 2022
@BenBE
Copy link
Member Author

BenBE commented Dec 21, 2022

There has no work been done on this, but in general I see this as a nice enhancement.

The new part here is mostly with the additional setting that has to be devised and the UI for its setup. We aim for all settings to be reachable in the UI directly. Thus just having the setting available in the config file won't be sufficient (that would be just part of the necessary changes).

@eworm-de
Copy link
Contributor

This could even go with fractional blocks to increase precision... Not sure if it would be worth the trouble.

@BenBE
Copy link
Member Author

BenBE commented Dec 21, 2022

This could even go with fractional blocks to increase precision... Not sure if it would be worth the trouble.

I though of something like this too and if we'd like to go that route we'd design the configuration UI accordingly.

In a really trimmed-down version this might be as simple as providing a set of defaults with something like the following sets as defaults:

 ||||||||
 ########
 ▏▎▍▌▋▊▉█
 ▁▂▃▄▅▆▇█
 ░░▒▒▓▓██
 ▌▌▌▌████
⠀⡀⡄⡆⡇⣇⣧⣷⣿

This basically would produce subpixel rendering for ⅛th of the cell (full cells using index 8, empty cells using cell 0 from the 9 bytes in each profile).

@Noctumsempra
Copy link

Love the different pattern ideas for the rendering.

@theking2
Copy link

theking2 commented May 15, 2023

It could also be considered to use or the following for more detailed metering:

Unicode sign name
2588 FULL BLOCK
2589 LEFT SEVEN EIGHTHS BLOCK
258A LEFT THREE QUARTERS BLOCK
258B LEFT FIVE EIGHTHS BLOCK
258C LEFT HALF BLOCK
258D LEFT THREE EIGHTHS BLOCK
258E LEFT ONE QUARTER BLOCK
258F LEFT ONE EIGHTH BLOCK

@0cjs
Copy link

0cjs commented Sep 4, 2024

This would be really nice to have because what's particularly hard to read about the current meters using just the | character is the colours. In small font sizes on LCD monitors using anti-aliasing it can be nearly impossible to distinguish a green | from a yellow |, or even a red |.

@rustedusted
Copy link

If this feature is not added yet

i am ready to take this feature request

@Noctumsempra
Copy link

Please! I'm still waiting for it to be implemented 🙏🏻🙏🏻🙏🏻

rustedusted added a commit to rustedusted/htop that referenced this issue Oct 6, 2024
adding sub pixel rendering of Bar Meter addressing feature-request htop-dev#647
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Extension or improvement to existing feature good first issue 🥇 Good for newcomers Hacktoberfest Issues for DigitalOcean Hacktoberfest new feature Completely new feature
Projects
None yet
Development

No branches or pull requests

6 participants