waybar-memory(5)

✨ waybar-memory(5) ✨

okay bestie, this is the memory module for waybar, and it lives in the File Formats Manual section of the docs. yes it's a man page. no it's not boring. let's go 🫢


πŸ’– NAME πŸ’–

waybar β€” the memory module, babe. that's it, that's the name.


🌸 DESCRIPTION 🌸

The memory module displays the current memory utilization. literally just vibes β€” how much of your RAM is currently in use. slay. πŸ‘‘


✨ CONFIGURATION ✨

You address this module by memory. put that in your config, bestie, or nothing happens.

  • interval β€” typeof: integer, default: 30. The interval in which the information gets polled. so like… how often it checks in on your memory. every 30 seconds by default. patient queen. ⏰
  • format β€” typeof: string, default: {percentage}%. The format, how information should be displayed. this is where you decide what the label actually says. πŸŽ€
  • format-icons β€” typeof: array/object. Based on the current percentage, the corresponding icon gets selected. The order is low to high. Or by the state if it is an object. so array = low-to-high icon ladder, object = keyed by state. both valid, both iconic. 🌈
  • rotate β€” typeof: integer. Positive value to rotate the text label (in 90 degree increments). yes you can turn it sideways. main character angle. πŸ“
  • states β€” typeof: object. A number of memory utilization states which get activated on certain percentage thresholds. See waybar-states(5) for the deets. 🚦
  • max-length β€” typeof: integer. The maximum length in character the module should display. it will not go past this, no matter how loud the number is. βœ‚οΈ
  • min-length β€” typeof: integer. The minimum length in characters the module should accept. ✨
  • align β€” typeof: float. The alignment of the label within the module, where 0 is left-aligned and 1 is right-aligned. If the module is rotated, it will follow the flow of the text. βš–οΈ
  • justify β€” typeof: string. The alignment of the text within the module's label, allowing options 'left', 'right', or 'center' to define the positioning. 🎯
  • on-click β€” typeof: string. Command to execute when clicked on the module. πŸ‘†
  • on-click-middle β€” typeof: string. Command to execute when middle-clicked on the module using mousewheel. πŸ–±οΈ
  • on-click-right β€” typeof: string. Command to execute when you right-click on the module. πŸ–±οΈ
  • on-update β€” typeof: string. Command to execute when the module is updated. πŸ”„
  • on-scroll-up β€” typeof: string. Command to execute when scrolling up on the module. ⬆️
  • on-scroll-down β€” typeof: string. Command to execute when scrolling down on the module. ⬇️
  • smooth-scrolling-threshold β€” typeof: double. Threshold to be used when scrolling. keeps the scroll chill and not all over the place. 🌊
  • tooltip β€” typeof: bool, default: true. Option to disable tooltip on hover. yes it defaults to on. yes you can turn the little hover popup off. πŸ’¬
  • menu β€” typeof: string. Action that popups the menu. πŸ”
  • menu-file β€” typeof: string. Location of the menu descriptor file. There need to be an element of type GtkMenu with id menu. don't skip that part, it's required fr fr. πŸ“„
  • menu-actions β€” typeof: array. The actions corresponding to the buttons of the menu. πŸŽ›οΈ
  • expand β€” typeof: bool, default: false. Enables this module to consume all left over space dynamically. greedy little module. love that for it. 🫢

πŸ¦‹ FORMAT REPLACEMENTS πŸ¦‹

these are the little {thing} tokens you drop into your format. the good stuff:

  • {percentage} β€” Percentage of memory in use. πŸ’œ
  • {swapPercentage} β€” Percentage of swap in use. πŸ”
  • {total} β€” Amount of total memory available in GiB. πŸ“¦
  • {swapTotal} β€” Amount of total swap available in GiB. πŸ“¦
  • {used} β€” Amount of used memory in GiB. πŸ”₯
  • {swapUsed} β€” Amount of used swap in GiB. πŸ”₯
  • {avail} β€” Amount of available memory in GiB. βœ…
  • {swapAvail} β€” Amount of available swap in GiB. βœ…
  • {swapState} β€” Signals if swap is activated or not. 🚨

⭐ EXAMPLES ⭐

the classic setup, no cap:

"memory": {
     "interval": 30,
     "format": "{}% ",
     "max-length": 10
}

πŸŽ€ FORMATTED MEMORY VALUES πŸŽ€

want decimals? want it to look like a lil stat readout? say less:

"memory": {
     "interval": 30,
     "format": "{used:0.1f}G/{total:0.1f}G "
}

πŸ’… STYLE πŸ’…

  • #memory

one selector. that's all you need to style it. go off. πŸ‘‘


reminder bestie: every token, every option, every default up there is exactly as written. no renames, no merges, no invented flags. i would never do that to you. πŸ’–

that's the whole page, and it's from waybar-memory(5), dated 2026-02-08. go check your RAM, queen. πŸ’œβœ¨πŸ¦‹

πŸ“¦ where this page comes from