From 56e46c208f3f56f80bd3fc6bebf97e1c2fee1ec9 Mon Sep 17 00:00:00 2001 From: Jan0660 Date: Fri, 3 Sep 2021 21:06:03 +0200 Subject: [PATCH] docs: memory segment --- docs/docs/memory.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 docs/docs/memory.md diff --git a/docs/docs/memory.md b/docs/docs/memory.md new file mode 100644 index 000000000000..0055a8c69cf7 --- /dev/null +++ b/docs/docs/memory.md @@ -0,0 +1,29 @@ +--- +id: memory +title: Memory +sidebar_label: Memory +--- + +## Memory + +Display memory usage percentage. + +## Sample Configuration + +```json +{ + "type": "memory", + "style": "powerline", + "foreground": "#26C6DA", + "background": "#2f2f2f", + "properties": { + "precision": 1, + "prefix": " \uf85a ", + "postfix": "% " + } +} +``` + +## Properties + +- precision: `int` - the number of decimal places to show - defaults to `0`