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
Add "free memory" to the memory module's label options #2028
Comments
|
If someone want to implement this, you just need to add the tokens in the polybar/src/modules/memory.cpp Lines 60 to 96 in 921658f
|
|
I will give this a shot, thanks for the guidance. |
|
@jallbrit You seem to be mixing It is a bit unfortunate that we have already named our tokens Otherwise the best approach would be to add for all |
|
@patrick96 thank you for pointing this out, I will update the issue. I agree that we should add Is it also unfortunate that |
Add labels to memory module that allow users to display both free and available memory separately. Closes polybar#2028. Free memory is memory that is truly not being used, while available memory includes memory that is technically being used but is readily available for other processes.
|
I'm not sure if this is the best place to ask this, but is there any option to show used memory (not including available/cache memory)? |
There are two ways to measure memory usage in Linux:
linuxatemyram.com explains this concept a little bit.
Currently, polybar's
memorymodule only allows displaying available memory. For most users, this is all they care about- it is a better representation of how much memory is available.Free memory is also a metric of interest for some users, including myself.
Current Situation
The
memorymodule currently labels memory as follows:%percentage_free%: percentage of memory that is available memory%percentage_used%:100 - %percentage_free%Possible Solution
An option should be made to display this "free memory" via the
memorymodule, accessible in thelabelvia%percentage_free%and%percentage_free_used%like so:%percentage_available_used%: memory owned by processes and unusable%percentage_available%: memory available for use%percentage_free_used%: memory being used (will almost always be very high)%percentage_free%: memory completely unused (will almost always be very low)This way, I can see how much RAM is being used but is available (100 - available memory), and also see how much RAM is truly being used (100 - free memory).
The text was updated successfully, but these errors were encountered: