yambar-modules-disk-io(5)
π NAME π
okay so bestie, welcome to the yambar-modules-disk-io(5) page from the File Formats Manual β¨ This module keeps track of the amount of bytes being read/written from/to disk, and it can distinguish between all partitions currently present in the machine. main character energy for real π
β¨ TAGS β¨
These are the tags it gives you, with their type and what they mean:
deviceβ string β name of the device being tracked (use the commandlsblkto see these). There is a special device,"Total", that reports the total stats for the machine. πis_diskβ boolean β whether or not the device is a disk (e.g.sda,sdb) or a partition (e.g.sda1,sda2,...)."Total"is advertised as a disk. π¦read_speedβ int β bytes read, in bytes/s. π₯write_speedβ int β bytes written, in bytes/s. πios_in_progressβ int β number of ios that are happening at the time of polling. π
π CONFIGURATION π
Here's the config situation, with Name, Type, Req, and Description folded in like a little group chat:
poll-intervalβ int, Req:noβ refresh interval of disk's stats in milliseconds (default=500). Cannot be less than250ms. β±οΈ
β οΈ fr fr,250msis the hard floor βpoll-intervalcannot go lower than that.
π EXAMPLES π
This reports the total amount of bytes being read and written every second, formatting in b/s, kb/s, mb/s, or gb/s, as appropriate. Here's the whole YAML moment, bestie:
bar:
left:
- disk-io:
poll-interval: 1000
content:
map:
conditions:
device == Total:
list:
items:
- string: {text: "Total read: "}
- map:
default: {string: {text: "{read_speed} B/s"}}
conditions:
read_speed > 1073741824:
string: {text: "{read_speed:gib} GB/s"}
read_speed > 1048576:
string: {text: "{read_speed:mib} MB/s"}
read_speed > 1024:
string: {text: "{read_speed:kib} KB/s"}
- string: {text: " | "}
- string: {text: "Total written: "}
- map:
default: {string: {text: "{write_speed} B/s"}}
conditions:
write_speed > 1073741824:
string: {text: "{write_speed:gib} GB/s"}
write_speed > 1048576:
string: {text: "{write_speed:mib} MB/s"}
write_speed > 1024:
string: {text: "{write_speed:kib} KB/s"}
π«Ά SEE ALSO π«Ά
cute sign-off: 2024-04-22 Β· File Formats Manual Β· yambar-modules-disk-io(5) πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms