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

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

View file

@ -36,13 +36,11 @@ window#waybar {
padding-right: 4px; padding-right: 4px;
} }
.module, #network.disconnected { label.module {
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,15 +51,14 @@ window#waybar {
padding: 0 5px; padding: 0 5px;
} }
.warning {
#wireplumber.muted, #network.disabled, .warning { box-shadow: 0 -2px 0 @base0A;
box-shadow: 0 -3px 0 @base0A;
} }
.critical { .critical {
box-shadow: 0 -3px 0 @base08; box-shadow: 0 -2px 0 @base08;
} }
#network { #network.disconnected, .muted {
box-shadow: 0 -3px 0 @base0B; color: @base03;
} }