Fix css syntax, add disk states

This commit is contained in:
Adam Gausmann 2025-05-15 10:12:43 -05:00
parent 3cde9c3d03
commit ba20ff337f
2 changed files with 8 additions and 6 deletions

View file

@ -105,7 +105,11 @@
"disk#{{ disk }}": { "disk#{{ disk }}": {
"path": "{{ disk }}", "path": "{{ disk }}",
"format": "{{ disk }} {free}", "format": "{{ disk }} {free}",
"tooltip-format": "{used} / {total} ({percentage_used}%)" "tooltip-format": "{used} / {total} ({percentage_used}%)",
"states": {
"warning": 70,
"critical": 90
}
}, },
{% endfor %} {% endfor %}

View file

@ -36,12 +36,13 @@ window#waybar {
padding-right: 4px; padding-right: 4px;
} }
.module { .module, #network.disconnected {
padding: 0 5px; padding: 0 5px;
margin: 4px 0; margin: 4px 0;
background: @base01; background: @base01;
border-radius: 6px; border-radius: 6px;
box-shadow: none;
} }
#workspaces { #workspaces {
@ -53,7 +54,7 @@ window#waybar {
} }
#wireplumber.muted #network.disabled .warning { #wireplumber.muted, #network.disabled, .warning {
box-shadow: 0 -3px 0 @base0A; box-shadow: 0 -3px 0 @base0A;
} }
@ -64,6 +65,3 @@ window#waybar {
#network { #network {
box-shadow: 0 -3px 0 @base0B; box-shadow: 0 -3px 0 @base0B;
} }
#network.disconnected {
box-shadow: none;
}