1waybar-memory(5)              File Formats Manual             waybar-memory(5)
2
3
4

NAME

6       waybar - memory module
7

DESCRIPTION

9       The memory module displays the current memory utilization.
10

CONFIGURATION

12       Addressed by memory
13
14       interval:
15            typeof: integer
16            default: 30
17            The interval in which the information gets polled.
18
19       format:
20            typeof: string
21            default: {percentage}%
22            The format, how information should be displayed.
23
24       format-icons:
25            typeof: array/object
26            Based on the current percentage, the corresponding icon gets se‐
27       lected.
28            The order is low to high. Or by the state if it is an object.
29
30       rotate:
31            typeof: integer
32            Positive value to rotate the text label.
33
34       states:
35            typeof: object
36            A number of memory utilization states which get activated on cer‐
37       tain percentage thresholds. See waybar-states(5).
38
39       max-length:
40            typeof: integer
41            The maximum length in character the module should display.
42
43       min-length:
44            typeof: integer
45            The minimum length in characters the module should take up.
46
47       align:
48            typeof: float
49            The alignment of the text, where 0 is left-aligned and 1 is right-
50       aligned. If the module is rotated, it will follow the flow of the text.
51
52       on-click:
53            typeof: string
54            Command to execute when clicked on the module.
55
56       on-click-middle:
57            typeof: string
58            Command to execute when middle-clicked on the module using mouse‐
59       wheel.
60
61       on-click-right:
62            typeof: string
63            Command to execute when you right clicked on the module.
64
65       on-update:
66            typeof: string
67            Command to execute when the module is updated.
68
69       on-scroll-up:
70            typeof: string
71            Command to execute when scrolling up on the module.
72
73       on-scroll-down:
74            typeof: string
75            Command to execute when scrolling down on the module.
76
77       smooth-scrolling-threshold:
78            typeof: double
79            Threshold to be used when scrolling.
80
81       tooltip:
82            typeof: bool
83            default: true
84            Option to disable tooltip on hover.
85

FORMAT REPLACEMENTS

87       {percentage}: Percentage of memory in use.
88
89       {swapPercentage}: Percentage of swap in use.
90
91       {total}: Amount of total memory available in GiB.
92
93       {swapTotal}: Amount of total swap available in GiB.
94
95       {used}: Amount of used memory in GiB.
96
97       {swapUsed}: Amount of used swap in GiB.
98
99       {avail}: Amount of available memory in GiB.
100
101       {swapAvail}: Amount of available swap in GiB.
102

EXAMPLES

104           "memory": {
105                "interval": 30,
106                "format": "{}% ",
107                "max-length": 10
108           }
109
110   FORMATTED MEMORY VALUES
111           "memory": {
112                "interval": 30,
113                "format": "{used:0.1f}G/{total:0.1f}G "
114           }
115

STYLE

117#memory
118
119
120
121                                  2023-08-16                  waybar-memory(5)
Impressum