disk-io - This module keeps track of the amount of bytes being read/written from/to disk. It can
Contents
Configuration
┌───────────────┬──────┬─────┬──────────────────────────────────────────────────────────────────────────┐
│ Name │ Type │ Req │ Description │
├───────────────┼──────┼─────┼──────────────────────────────────────────────────────────────────────────┤
│ poll-interval │ int │ no │ Refresh interval of disk's stats in milliseconds (default=500). Cannot │
│ │ │ │ be less then 250ms. │
└───────────────┴──────┴─────┴──────────────────────────────────────────────────────────────────────────┘
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.
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"}
Name
disk-io - This module keeps track of the amount of bytes being read/written from/to disk. It can
distinguish between all partitions currently present in the machine.
See Also
yambar-modules(5), yambar-particles(5), yambar-tags(5), yambar-decorations(5)
2024-04-20 yambar-modules-disk-io(5)
