bpytop icon indicating copy to clipboard operation
bpytop copied to clipboard

[REQUEST] allow disabling the "Free%" of Swap

Open Moire9 opened this issue 4 years ago • 2 comments

Sorry for all the new feature requests, it's just that I've discovered this and all of my ideas that I had over time of using bashtop can finally be expressed.

Is your feature request related to a problem? Please describe. For the memory menu, it displays total Used%, Available%, Cached%, and Free%. Makes sense, given how some distros handle memory usage. However, for Swap, it only shows Used% and Free%, and since Free% is literally 100 - Used%, it doesn't really give any new information.

Describe the solution you'd like The ability to disable the Used% graph/bar for Swap.

Describe alternatives you've considered Adding the Available% and Cached% to Swap in order for Free% to make sense, but I don't think free reports that for Swap, so it may not be possible.

Additional context None.

Moire9 avatar Oct 31 '20 21:10 Moire9

The Free % will already hide itself for all disks if the window size is too short vertically to show all disks in the box. So if 'swap' is moved from 'mem' to 'disks' with the "s" key and you have enough disks, you'll see this.

Screen Shot 2020-10-31 at 8 31 45 PM

Screen Shot 2020-10-31 at 8 32 28 PM

The dev has gone to extraordinary lengths to make the UI both visually appealing and highly adaptive to different window sizes. Part of the visual appeal is having lots of colorful things everywhere and minimal wasted space in the UI. Letting the user hide the Free % just for swap seems like a lot of trouble for minimal gain in making the UI better. Hiding it for all disks would just make the UI look a lot emptier at large window sizes.

Plus the options menu is actually getting kind of long already.

RedBearAK avatar Nov 01 '20 07:11 RedBearAK

Would also be nice to be able to hide any particular bar in mem section, for example I'd like to just leave only Used% and Cached% otherwise quick look is not sufficient to be able to understand whats going on and you need to concentrate more

saksmt avatar Nov 11 '20 17:11 saksmt