waybar-disk(5)
πΈ waybar-disk(5) πΈ
okay bestie, welcome to the disk module of waybar β yeah that waybar, the one that makes your bars look like a whole aesthetic β¨ This page is the File Formats Manual entry for it, and we're gonna get you fully acquainted, no cap π
π NAME π
waybar β the disk module. she's the one that tells you how much of your disk is currently spoken for π«Ά
π DESCRIPTION π
The disk module displays the current disk space used.
that's it. that's the whole job. she shows you the disk usage and she does it gorgeously. main character energy fr fr π
β¨ CONFIGURATION β¨
Addressed by disk
like, that's her name in the config, that's how you call her over π
pathβ typeof:string, default:"/"Any path residing in the filesystem or mountpoint for which the information should be displayed. so like, point her at whatever mount you're nosy about π¦intervalβ typeof:integer, default:30The interval in which the information gets polled. every how-many-seconds she goes and peeks, basically β±οΈformatβ typeof:string, default:"{percentage_used}%"The format, how information should be displayed. this is where you make it cute πΈrotateβ typeof:integerPositive value to rotate the text label (in 90 degree increments). vertical bar girlies rise πstatesβ typeof:objectA number of disk utilization states that get activated on certain percentage thresholds (percentage_used). Seewaybar-states(5). yes, you can make her change color when things get dire πmax-lengthβ typeof:integerThe maximum length in character the module should display.min-lengthβ typeof:integerThe minimum length in characters the module should accept.alignβ typeof:floatThe alignment of the label within the module, where0is left-aligned and1is right-aligned. If the module is rotated, it will follow the flow of the text. very demure, very mindful πjustifyβ typeof:stringThe alignment of the text within the module's label, allowing options'left','right', or'center'to define the positioning.on-clickβ typeof:stringCommand to execute when clicked on the module.on-click-middleβ typeof:stringCommand to execute when middle-clicked on the module using mousewheel.on-click-rightβ typeof:stringCommand to execute when you right-click on the module.on-updateβ typeof:stringCommand to execute when the module is updated.on-scroll-upβ typeof:stringCommand to execute when scrolling up on the module.on-scroll-downβ typeof:stringCommand to execute when scrolling down on the module.smooth-scrolling-thresholdβ typeof:doubleThreshold to be used when scrolling.tooltipβ typeof:bool, default:trueOption to disable tooltip on hover. she wants to tell you things when you hover, but you can tell her to hush π«’tooltip-formatβ typeof:string, default:"{used} out of {total} used ({percentage_used}%)"The format of the information displayed in the tooltip.unitβ typeof:stringUse withspecific_free,specific_used, andspecific_totalto force calculation to always be in a certain unit. AcceptskB,kiB,MB,Mib,GB,GiB,TB,TiB. (yes bestie those are written exactly like that, copy them character for character, i don't make the rules π)menuβ typeof:stringAction that popups the menu.menu-fileβ typeof:stringLocation of the menu descriptor file. There need to be an element of type
GtkMenu with id menu
menu-actionsβ typeof:arrayThe actions corresponding to the buttons of the menu.expandβ typeof:bool, default:falseEnables this module to consume all left over space dynamically. she's hungry, she wants the whole bar π₯
π FORMAT REPLACEMENTS π
these are the little magic words you drop inside format and tooltip-format β swap them in and she'll fill them out for you π«
{percentage_used}: Percentage of disk in use.{percentage_free}: Percentage of free disk space{total}: Total amount of space on the disk, partition, or mountpoint. Automatically selects unit based on size remaining.{used}: Amount of used disk space. Automatically selects unit based on size remaining.{free}: Amount of available disk space for normal users. Automatically selects unit based on size remaining.{path}: The path specified in the configuration.{specific_total}: Total amount of space on the disk, partition, or mountpoint in a specific unit. Defaults to bytes.{specific_used}: Amount of used disk space in a specific unit. Defaults to bytes.{specific_free}: Amount of available disk space for normal users in a specific unit. Defaults to bytes.
π EXAMPLES π
exhibit a, the lowkey version:
"disk": {
"interval": 30,
"format": "{percentage_free}% free on {path}",
}
exhibit b, the specific-unit version, with her own little comment showing you what it renders as π
"disk": {
"interval": 30,
"format": "{specific_free:0.2f} GB out of {specific_total:0.2f} GB available. Alternatively {free} out of {total} available",
"unit": "GB"
// 1434.25 GB out of 2000.00 GB available. Alternatively 1.4TiB out of 1.9TiB available.
}
π STYLE π
#disk
that's the CSS selector bestie, go make her pretty π
and that's the whole page!! you're now officially a disk module expert, i don't make the rules, slay π β¨
signing off from the File Formats Manual, dated 2026-02-08, this was waybar-disk(5) β mwah, go check your disk space π¦π
π¦ where this page comes from
- ubuntu resolute: waybar 0.15.0-1 Β· MIT
- ubuntu stonking: waybar 0.15.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms