diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2024-01-17 22:37:51 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2024-01-17 22:37:51 +0100 |
commit | f1d7ec2531c45e01dae03746c5158f5543747931 (patch) | |
tree | 6a99d3c4f4ffbcba4b65c9c7826d86eb01ce0426 /waybar | |
parent | 351cf469408b50aea4c5b6890c9eeafb8c5bcdab (diff) |
waybar: support dual interface networking
Diffstat (limited to 'waybar')
-rw-r--r-- | waybar/config | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/waybar/config b/waybar/config index bc255f5..f0d1083 100644 --- a/waybar/config +++ b/waybar/config @@ -1,18 +1,30 @@ { "layer": "top", - "modules-left": ["river/tags", "network"], + "modules-left": ["river/tags", "network#eth0", "network#wlan0"], "modules-right": ["tray", "cpu", "memory", "wireplumber", "battery", "backlight", "clock"], - "network": { - "format-disconnected": "{icon}", - "format-linked": "{icon} {essid} 📡 {signalStrength}%", - "format-wifi": "{icon} {essid} 📡 {signalStrength}% ↓ {bandwidthDownBytes} ↑ {bandwidthUpBytes}", + "network#eth0": { + "format-disconnected": "", + "format-linked": "{icon} ⇅", + "format-ethernet": "{icon} ⇅ ↓ {bandwidthDownBytes} ↑ {bandwidthUpBytes}", + "format-icons": { + "disconnected": "📵", + "linked": "🔗", + "ethernet": "🌐", + }, + "interface": "eth0", + "interval": 1 + }, + "network#wlan0": { + "format-disconnected": "", + "format-linked": "{icon} {essid} 🛜 {signalStrength}%", + "format-wifi": "{icon} {essid} 🛜 {signalStrength}% ↓ {bandwidthDownBytes} ↑ {bandwidthUpBytes}", "format-icons": { "disconnected": "📵", "linked": "🔗", "wifi": "🌐", }, "interface": "wlan0", - "interval": 2 + "interval": 1 }, "cpu": { "format": "💻 {usage}%", |