gray out for disconnected networks and muted audio

This commit is contained in:
Adam Gausmann 2025-05-15 10:27:04 -05:00
parent 1ce9e0414e
commit 5f6ccc0742
2 changed files with 10 additions and 16 deletions

View file

@ -32,12 +32,11 @@
"clock#utc",
"clock#local"
],
{% for iface in host.wireless %}
"network#{{ iface }}": {
"interface": "{{ iface }}",
"format": "\uf1eb \uf058",
"format-disconnected": "\uf1eb \uf057",
"format": "\uf1eb",
"tooltip-format": "{{ iface }} {ipaddr} {essid} {signalStrength}",
"tooltip-format-disconnected": "{{ iface }} down"
},
@ -46,8 +45,7 @@
{% for iface in host.ethernet %}
"network#{{ iface }}": {
"interface": "{{ iface }}",
"format": "\uf6ff \uf058",
"format-disconnected": "\uf6ff \uf057",
"format": "\uf6ff",
"tooltip-format": "{{ iface }} {ipaddr}",
"tooltip-format-disconnected": "{{ iface }} down"
},
@ -56,8 +54,7 @@
{% if not host.ethernet and host.auto_ethernet %}
"network#auto_ethernet": {
"interface": "en*",
"format": "\uf6ff \uf058",
"format-disconnected": "\uf6ff \uf057",
"format": "\uf6ff",
"tooltip-format": "{{ iface }} {ipaddr}",
"tooltip-format-disconnected": "{{ iface }} down"
},

View file

@ -36,13 +36,11 @@ window#waybar {
padding-right: 4px;
}
.module, #network.disconnected {
label.module {
padding: 0 5px;
margin: 4px 0;
background: @base01;
border-radius: 6px;
box-shadow: none;
}
#workspaces {
@ -53,15 +51,14 @@ window#waybar {
padding: 0 5px;
}
#wireplumber.muted, #network.disabled, .warning {
box-shadow: 0 -3px 0 @base0A;
.warning {
box-shadow: 0 -2px 0 @base0A;
}
.critical {
box-shadow: 0 -3px 0 @base08;
box-shadow: 0 -2px 0 @base08;
}
#network {
box-shadow: 0 -3px 0 @base0B;
#network.disconnected, .muted {
color: @base03;
}