win0err / gnome-runcat

😼 The cat tells you the CPU usage by running speed
https://extensions.gnome.org/extension/2986/runcat/
GNU General Public License v3.0
416 stars 29 forks source link

Proposal: Add Ram utilization and Idle threshold only for sleep #47

Open ispanos opened 1 year ago

ispanos commented 1 year ago

First of all, I was searching for a simple extension that shows cpu utilization and when I show that your extension also has and idle threshold setting I was amazed. I wanted to have something like that for a very long time. Great work!

  1. I'm not sure you want to add ram utilization to your extension, but it would be a great addition to have both metrics in a compact "block". A simple, static icon can indicate which percentage corresponds to cpu and which to ram utilization.

  2. It many not be as clean as you have it now, but you may be interested in adding the following option. Besides your current "Idle threshold", use the same metric to change org/gnome/settings-daemon/plugins/power sleep-inactive-ac-type to 'nothing'. Optionally, add a "default" behavior for when the value is below the threshold.

    I don't know if this makes since to anyone other than me, but sometimes I want my computer to lock and put the monitors to sleep, but I don't want my whole system to suspend. For example, when I am running a job in the background I wouldn't mind the energy savings from turning off my monitors, but I also don't want my program to stop running. Right now I have set sleep-inactive-ac-type='nothing' because I always forget to change it when I am running some simulations overnight and I am wasting a lot of extra energy.

win0err commented 1 year ago

@ispanos: thank you :-)

I'm thinking about showing extra information (like CPU per core, RAM consumption, etc.) to the drop-down menu (like this: https://github.com/win0err/gnome-runcat/issues/16#issuecomment-1265695725).

Nevertheless, I want to keep the extension as simple as possible.

ispanos commented 1 year ago

I understand. If you keep adding more and more of the suggested features it will end up being a lot of work.

I wanted to ram indicator because I sometimes right bad scripts (R, Matlab. Python) that max out my ram and I have lost work after my system froze. I had cpu and ram indicators in my sway bar which helped me prevent many such troubles.

As for the idle threshold I have no idea how easy it is to add. Maybe if I end up switching to gnome full time I will fork your project and add it myself. However I don't know how likely that is because I don't like js/ts and I haven't written anything.

Could you keep this issue open in case others want that feature too? It could help with my motivation to work on it.

win0err commented 1 year ago

Could you keep this issue open in case others want that feature too?

Sure, no problem