How to Get RAM and Swap Usage Widgets to Work on Plasma
Preamble: The "standard" widgets don't work. They always show "100%" if my memory serves me right. I wrote this because
Maxnix was interested. I don't know if it'll get approved in the "Howto" section of the forum, so I paste it here as well.
This works on Plasma 6 on FreeBSD 15 running Wayland and probably on other configurations.
1) Select a “System Monitor Sensor” widget (a generic sensor widget)
2a) To show the used RAM, configure it like this:
Total sensors = Used Physical Memory Percentage
Sensors =
- Used Physical Memory Percentage
- Free Physical Memory Percentage
Choose a different color for the previous 2 sensors (click on the white little square). If it doesn’t seem to work, apply and try again.
Text-Only Sensors: Whatever you like.
2b) To show the used Swap: Same instructions as in “2a” but:
Total sensors = Used Swap Memory Percentage
Sensors =
- Used Swap Memory Percentage
- Free Swap Memory Percentage
IMPORTANT: According to my observations, these widgets are not very exact. I think that many times when memory is freed they don’t register it, so use them just as nice ornaments.