-
Notifications
You must be signed in to change notification settings - Fork 50
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
Change memory rock default full text #94
Change memory rock default full text #94
Conversation
Hi @matthewrossi , thank you for your contribution! The net-traffic and cpu also relay the the amount used, rather than free. But, on the other hand the battery indicator relays the amount remaining. I like that your change makes memory more consistent w/ CPU, but on the other hand there is value to knowing how much memory is free over how much is taken: low memory situations is what I think most people are concerned with. If the metric emits "memory used" then the user must do the math to figure out how much is left. If the metric emits the amount free, then it's clear. Ideally I suppose converting this to a percentage would be most consistent w/ CPU and provide an objective metric w/out requiring user to do math. What do you think? |
Hi @kgilmer, I did not thought about it, but I totally agree, showing the amount of free memory highlights low memory situations way more than memory used would. The use of the percentage to show current memory usage could help with that, but it might also make CPU and memory blocks harder to distinguish. Do you think this might be an issue? |
I agree with @kgilmer that total available memory is more useful. I think we can add an option to switch to percentage instead changing the default behavior. A flag that can be passed to script or based on an i3 xresource key. |
@matthewrossi we can always take a look and find another icon that is more representative of "ram". The generic "IC chip" icons can only go so far I guess haha. FWIW others have requested visualizing ram as percent free, so I think it's worth doing if someone has the ability and time. https://github.com/regolith-linux/regolith-desktop/issues/514 |
Hi, I have added some changes based on your feedback. It is now possible to select what the memory block shows depending on the display and percentage variables (both variables can be specified within the conf.d or using Xresources). The memory displayed depends on the display variable or i3xrocks.memory.display:
Showing the memory as percentage depends on the variable percentage or i3xrocks.memory.percentage:
By default the memory block shows the free memory as gigs, same as before. |
Thanks for the new commit! I tried to set the percentage to true but it's still showing it in G. Am I missing something? I set: i3xrocks.memory.percentage: true In my |
Your configuration is correct. So I reproduced it, it looks like what was working with display, did not with percentage so the percentage variable was always looking empty when set using Xresources. BTW why is this change working? It doesn't make any sense to me. |
I figured the fix. As soon as you change the |
Great, thanks for sticking through with this one @matthewrossi ! And thanks for your help and review @cheginit . Matthew if you're interested in a few Regolith laptop stickers I'll mail you some (international is OK) I just need a postal address. You can email it to me at kgilmer at gmail.com. |
Memory rock default full text shows memory available, while swap shows the one currently in use.
This aligns the default full text to the swap behavior.
It may be a matter of preference, but I feel like showing the memory currently in use is what a user would expect from this rock.