waybar: add disk module if space gets low

This commit is contained in:
tea 2024-07-14 08:54:37 +02:00
parent 5b6efb5e9b
commit e595843387
No known key found for this signature in database
2 changed files with 12 additions and 2 deletions

View File

@ -22,6 +22,7 @@
"temperature", "temperature",
"battery", "battery",
"custom/load", "custom/load",
"disk",
"clock", "clock",
"tray" "tray"
], ],
@ -124,6 +125,15 @@
"exec": "waybarscript_loadavg", "exec": "waybarscript_loadavg",
"interval": 10 "interval": 10
}, },
"disk": {
"format": "{free} \udb80\udeca",
"format-good": "",
"states": {
"good": 0,
"warning": 90,
"critical": 99
}
},
"clock": { "clock": {
"tooltip-format": "<tt><small>{calendar}</small></tt>", "tooltip-format": "<tt><small>{calendar}</small></tt>",
// "format-alt": "{:%Y-%m-%d}", // "format-alt": "{:%Y-%m-%d}",

View File

@ -133,12 +133,12 @@ label:focus {
padding-right: 0; padding-right: 0;
} }
#custom-load.warning { #custom-load.warning, #disk.warning {
color: #ffb65e; color: #ffb65e;
font-weight: bold; font-weight: bold;
} }
#custom-load.critical { #custom-load.critical, #disk.critical {
background-color: #b000b0; background-color: #b000b0;
color: #000000; color: #000000;
} }