class Widgets::Memory

The Memory widget reads /proc/meminfo.

By default the widget displays a precentage like: “memory: #{percentage}%”

You can make use of the instances values: @total, @available, @free, @cached and @meminfo. The values are in KB. @meminfo is a hash containing the raw /proc/meminfo data.

Example:

widget :memory do "cache: #{@cached / 1_000_000}GB" end