Skip to content
Kim Brose edited this page Aug 30, 2020 · 11 revisions

The disk module tracks the usage of filesystems and partitions.

Config

Addressed by disk

option typeof default description
interval integer 30 The interval in which the information gets polled.
format string {percentage_free}% The format, how information should be displayed.
max-length integer The maximum length in character the module should display.
on-click string Command to execute when clicked on the module.
on-click-middle string Command to execute when you middle clicked on the module using mousewheel.
on-click-right string Command to execute when you right clicked on the module.
on-scroll-up string Command to execute when scrolling up on the module.
on-scroll-down string Command to execute when scrolling down on the module.
path strin / Mount point of the filesystem to monitor.
smooth-scrolling-threshold double Threshold to be used when scrolling.
tooltip bool true Option to enable tooltip on hover.
tooltip-format string {used} used out of {total} on {path} ({percentage_used}%) Format of the text to display in the tooltip

Format replacements:

string replacement
{percentage_free} Percentage of available space.
{percentage_used} Percentage of disk space already in use.
{total} Amount of disk space.
{used} Amount of used disk space.
{free} Amount of free disk space.

Examples:

"disk": {
    "interval": 30,
    "format": "Only {percentage_free}% remaining on {path}",
    "path": "/"
}

Style

  • #disk

Clone this wiki locally