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

combined meters: when set to text, concatenate instead of equal split #1568

Open
M95D opened this issue Dec 12, 2024 · 0 comments
Open

combined meters: when set to text, concatenate instead of equal split #1568

M95D opened this issue Dec 12, 2024 · 0 comments
Labels
enhancement Extension or improvement to existing feature

Comments

@M95D
Copy link

M95D commented Dec 12, 2024

image

For some combined meters, such as memory+swap, when set to text mode, their components are very different in length. Mem has much longer text than Swap.
Even when there is enough width for both meters, the longer one is truncated at half the available width where the second meter begins, leaving lots of empty space at the end.

I propose that combined meters, when set to text mode, should be concatenated (with one space separator) and truncated only at the end if necessary.
Alternatively, the second meter could be aligned to the right, leaving empty space in the middle or, if there is not enough space, truncate the first meter to fit all text of the second one.

I also propose having a Zram+Swap combined meter. Zram is commonly used for swap on embedded devices where no storage is available other than nand/flash with limited erase cycles. It makes sense to combine with swap.

Thank you.

@BenBE BenBE added the enhancement Extension or improvement to existing feature label Dec 12, 2024
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
Projects
None yet
Development

No branches or pull requests

2 participants