gnome-nvidia-extension icon indicating copy to clipboard operation
gnome-nvidia-extension copied to clipboard

[Feature Request] Fixed Widths

Open AlexvZyl opened this issue 2 years ago • 4 comments

Currently the updating numbers cause the entire widget to move around when the amount of numbers change, which is distracting in some cases. It would be nice if there could be a fixed widths options, like with Vitals.

AlexvZyl avatar Jul 25 '22 13:07 AlexvZyl

@ethanwharris If you do not have the time for this, let me know and I can give it a shot when I get some spare time.

AlexvZyl avatar Jul 25 '22 13:07 AlexvZyl

Could you provide screenshots of Vitals @Alex-vZyl ?

I like the idea, varying fixed width options would be good.. at minimum it should scale to the width of 4 characters for each value by default (3 numerals and a symbol '%' or degrees C etc) which should reduce the issue, with other options allowing gaps in between stats for customisation.

derenv avatar Jul 28 '22 14:07 derenv

Here is a screenshot of vitals and nvidia stats: image

Vitals implemented their fixed widths in a dynamic manner. The width is taken as the widest the element has been. So if a value goes from 1% to 10% the element widens and everything moves. The same for going from 10% to 100%. It does not shrink when going from a larger element to a smaller one (100% to 10%), obviously. This makes sense, since vitals has a ton of stuff they monitor, all with different values and units.

However, this causes inconsistencies and some elements are wider than others, and sometimes there are large open white spaces. This can be seen in the first element.

I like your idea of having a fixed width of 4 characters. It is simple and very consistent. It is especially viable since this extension just monitors 4 resources.

AlexvZyl avatar Jul 28 '22 16:07 AlexvZyl

@Alex-vZyl I've created a branch (feature-request-fixed-widths) feel free to make pull requests if you want. I plan on having a look at some point, but i'm quite busy atm so if you have the time/energy go for it!

I've got a passthrough VM (i don't use gnome currently) so i can do some validation testing if needed.

derenv avatar Aug 04 '22 17:08 derenv