Skip to content

Added a new 'memwithbuffersperc' variable#2314

Open
mfluhr wants to merge 1 commit intobrndnmtthws:mainfrom
mfluhr:memwithbuffersperc
Open

Added a new 'memwithbuffersperc' variable#2314
mfluhr wants to merge 1 commit intobrndnmtthws:mainfrom
mfluhr:memwithbuffersperc

Conversation

@mfluhr
Copy link
Copy Markdown
Contributor

@mfluhr mfluhr commented Jan 22, 2026

Description

Added a new 'memwithbuffersperc' variable to get the percentage of memory in use, including memory used by system buffers and caches.

As an Android OS developer, I am rebuilding the AOSP daily, and the build process is heavily multi-threaded, consuming almost all my RAM. Since I want to avoid the oomd killer kicking in, I am closely monitoring RAM usage, not only using mem and memperc, but also memwithbuffers.

Since there is no memwithbuffersperc variable available, I tought this might be a great addition both for completeness and statistics purposes.

The code should not affect existing conky configurations, since it is a new variable addition.
It has been tested locally using the following configuration

[...]
${font DejaVu Sans:bold:size=14}MEMORY ${hr 2}${font}${voffset 8}
${font DejaVu Sans:bold:size=10}RAM${font}${alignc}$mem / $memmax${alignr}${font DejaVu Sans:bold:size=10}$memperc%${font}${voffset 2}
${membar 16}${voffset 4}
${font DejaVu Sans:bold:size=10}BUFFERED${font}${alignc}$memwithbuffers / $memmax${alignr}${font DejaVu Sans:bold:size=10}$memwithbuffersperc%${font}${voffset 2}
${memwithbuffersbar 16}${voffset 4}
${font DejaVu Sans:bold:size=10}SWAP${font}${alignc}${swap} / ${swapmax}${alignr}${font DejaVu Sans:bold:size=10}${swapperc}%${font}${voffset 2}
${swapbar 16}
[...]

@netlify
Copy link
Copy Markdown

netlify bot commented Jan 22, 2026

Deploy Preview for conkyweb ready!

Name Link
🔨 Latest commit a6d9ca7
🔍 Latest deploy log https://app.netlify.com/projects/conkyweb/deploys/697263e26156e50008a29e12
😎 Deploy Preview https://deploy-preview-2314--conkyweb.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added documentation suggests documentation changes or improvements sources PR modifies project sources labels Jan 22, 2026
@Caellian
Copy link
Copy Markdown
Collaborator

I think it would be better if this was an optional argument for mem and memperc instead of a new variable. You only need to check "-b" in args, so it should be straightforward, and there are plenty of examples ranging from simple to advanced.

@Caellian Caellian added feature suggest addition of new functionality that isn't currently supported in any way text related to `conky.text` variables, their parsing or implementation labels Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation suggests documentation changes or improvements feature suggest addition of new functionality that isn't currently supported in any way sources PR modifies project sources text related to `conky.text` variables, their parsing or implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants