Hi
Below I have copied from the i3config man page:
Its all working but I am trying to keep memory units to GiB
I have tried all manner of variations, like with quotes, units not unit, spaces etc etc, etc but am at a loss as is an internet search
Can anyone make the no doubt embarrasingly simple correction for me please?
memory {
format = "%used"
unit = Gi
threshold_degraded = "0.5M"
}
5.11. Memory
Gets the memory usage from system on a Linux system from /proc/meminfo. Other systems are currently not supported.
As format placeholders, total, used, free, available and shared are available. These will print human readable values. It’s also possible to prefix the placeholders with percentage_ to get a value in percent.
It’s possible to define a threshold_degraded and a threshold_critical to color the status bar output in color_degraded or color_bad, if the available memory falls below the given threshold. Possible values of the threshold can be any integer, suffixed with an iec symbol (T, G, M, K). Alternatively, the integer can be suffixed by a percent sign, which then gets evaluated relatively to total memory.
If the format_degraded parameter is given and either the critical or the degraded threshold applies, format_degraded will get used as format string. It acts equivalently to format.
It’s also possible to define the unit for the various format placeholders. As /proc/meminfo returns the memory in kB they will be converted to the given unit. If no unit is given or the auto option is used, the conversion will select the maximum possible unit.
As the converted format placeholder will be a decimal number, the number of decimals can be configured via the decimals option. If no such option is given the converted format placeholder will have one decimal.
As Linux’ meminfo doesn’t expose the overall memory in use, there are multiple methods to distinguish the actually used memory.
Example memory_used_method: memavailable (“total memory” - “MemAvailable”, matches free command)
Example memory_used_method: classical (“total memory” - “free” - “buffers” - “cache”, matches gnome system monitor)
Example order: memory
Example format: %free %available (%used) / %total
Example format: %percentage_used used, %percentage_free free, %percentage_shared shared
Example unit: auto, Ki, Mi, Gi, Ti
Example decimals: 0, 1, 2, 3
Example threshold_degraded: 10%
Example threshold_critical: 5%
Example format_degraded: Memory LOW: %free