fflewddur / tophat

View CPU, memory, disk, and network activity in the GNOME top bar.
https://extensions.gnome.org/extension/5219/tophat/
GNU General Public License v3.0
347 stars 26 forks source link

Consider changing meter color when resource consumption passes a given threshold #60

Open fflewddur opened 1 year ago

fflewddur commented 1 year ago

It might be useful to use a separate meter color when a resource is dangerously low (e.g., almost out of memory or disk space, or all CPU cores are at 100%). Arguably the meter already presents this information by showing that the resource is (or nearly is) full, and changing colors, especially for a non-exhaustible resource such as CPU, could be very distracting.

If we were to do this, it would also likely need a user-configurable threshold for each resource type. This would crowd the current preferences window, so that would likely need to be re-designed as well.

lkraav commented 1 year ago

My main goal with this would be to understand when CPU usage sits in non-green for unnaturally long when compared to active work. Means there might be stray process churn. With meter green all the time, it's really not possible to tell easily from small tray space.

4r7if3x commented 1 year ago

I came here to ask for the same feature. I'd like to be able to set colors based on certain thresholds. e.g. default could be:

#03ac13 (upto 40%) #fa8128 (upto 60%) #ff2400 (upto 100%)

It would be sufficient to be applied to the panel stats only and not the detailed charts.