From dad2cac0892388e5b6d4c65320446ef2cda1f4a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Sun, 17 May 2026 21:14:46 +0200 Subject: [PATCH] Fix missing icons + add widget ethernet --- private_dot_config/waybar/config.jsonc | 29 ++++++++++++++++++-------- private_dot_config/waybar/style.css | 9 ++++++-- 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/private_dot_config/waybar/config.jsonc b/private_dot_config/waybar/config.jsonc index b428405..b3e8fd5 100644 --- a/private_dot_config/waybar/config.jsonc +++ b/private_dot_config/waybar/config.jsonc @@ -20,6 +20,7 @@ "idle_inhibitor", "pulseaudio", "network", + "network#wired", "power-profiles-daemon", "cpu", "memory", @@ -124,7 +125,7 @@ "critical-threshold": 80, // "format-critical": "{temperatureC}°C {icon}", "format": "{temperatureC}°C {icon}", - "format-icons": ["", "", ""] + "format-icons": ["", "", ""] }, "backlight": { // "device": "acpi_video1", @@ -139,7 +140,7 @@ }, "format": "{capacity}% {icon}", "format-full": "{capacity}% {icon}", - "format-charging": "{capacity}% ", + "format-charging": "{capacity}% 󱊥", "format-plugged": "{capacity}% ", "format-alt": "{time} {icon}", // "format-good": "", // An empty format will hide the module @@ -162,10 +163,20 @@ }, "network": { "interface": "wlp2*", // (Optional) To force the use of this interface + "family": "ipv4", "format-wifi": "{essid} ({signalStrength}%) ", - "format-ethernet": "{ipaddr}/{cidr} ", - "tooltip-format": "{ifname} via {gwaddr} ", - "format-linked": "{ifname} (No IP) ", + "format-ethernet": "{ipaddr}/{cidr} ", + "tooltip-format": "{ifname} via {gwaddr} ", + "format-linked": "{ifname} (No IP) ", + "format-disconnected": "Disconnected ⚠", + "format-alt": "{ifname}: {ipaddr}/{cidr}" + }, + "network#wired": { + "interface": "enp*", // (Optional) To force the use of this interface + "family": "ipv4", + "format-ethernet": "{ipaddr}/{cidr} ", + "tooltip-format": "{ifname} via {gwaddr} ", + "format-linked": "{ifname} (No IP) ", "format-disconnected": "Disconnected ⚠", "format-alt": "{ifname}: {ipaddr}/{cidr}" }, @@ -173,14 +184,14 @@ // "scroll-step": 1, // %, can be a float "format": "{volume}% {icon} {format_source}", "format-bluetooth": "{volume}% {icon} {format_source}", - "format-bluetooth-muted": " {icon} {format_source}", - "format-muted": " {format_source}", + "format-bluetooth-muted": "󰗿 {icon} {format_source}", + "format-muted": " {format_source}", "format-source": "{volume}% ", "format-source-muted": "", "format-icons": { "headphone": "", - "hands-free": "", - "headset": "", + "hands-free": "", + "headset": "", "phone": "", "portable": "", "car": "", diff --git a/private_dot_config/waybar/style.css b/private_dot_config/waybar/style.css index 2dcfe08..26dcc36 100644 --- a/private_dot_config/waybar/style.css +++ b/private_dot_config/waybar/style.css @@ -1,6 +1,6 @@ * { - font-family: FantasqueSansM Nerd Font; - font-size: 13px; + font-family: Hack Nerd Font Mono; + font-size: 12px; } window#waybar { @@ -89,6 +89,7 @@ button:hover { #backlight, #language, #network, +#network.wired, #pulseaudio, #wireplumber, #custom-media, @@ -193,6 +194,10 @@ label:focus { background-color: #2980b9; } +#network.wired { + background-color: #2980b9; +} + #network.disconnected { background-color: #f53c3c; }