waybar: update network config

This commit is contained in:
Konstantin Koslowski 2022-03-25 20:28:01 +01:00
parent 7964d2b776
commit bd76dce914
3 changed files with 94 additions and 107 deletions

View file

@ -25,9 +25,8 @@
], ],
"modules-right": [ "modules-right": [
"custom/separator#right", "custom/separator#right",
"network#wl0",
"network#en0", "network#en0",
"network#vpn0", "network#wl0",
"custom/separator#right", "custom/separator#right",
"cpu", "cpu",
"memory", "memory",
@ -149,6 +148,21 @@
"format-charging": "<span foreground='#268bd2'></span>{capacity:3}%", "format-charging": "<span foreground='#268bd2'></span>{capacity:3}%",
"format-icons": ["", "", "", "", ""] "format-icons": ["", "", "", "", ""]
}, },
"network#en0": {
"interval": 2,
"interface": "en0",
"format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-disconnected": "<span foreground='#606060'> </span>{ifname}",
"min-length": 8,
"max-length": 30,
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-ethernet": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-wifi": "{ifname} {essid} ({signalStrength:3}%)\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui"
},
"network#wl0": { "network#wl0": {
"interval": 2, "interval": 2,
"interface": "wl0", "interface": "wl0",
@ -158,34 +172,9 @@
"format-disconnected": "<span foreground='#606060'> </span>{ifname}", "format-disconnected": "<span foreground='#606060'> </span>{ifname}",
"min-length": 8, "min-length": 8,
"max-length": 30, "max-length": 30,
"tooltip-format": "{ifname} {essid} ({signalStrength:3}%)\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-linked": "{ifname} linked",
"tooltip-format-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui"
},
"network#en0": {
"interval": 2,
"interface": "en0",
"format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength:3}%)",
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-disconnected": "<span foreground='#606060'> </span>{ifname}",
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}", "tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-linked": "{ifname} linked", "tooltip-format-ethernet": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-disconnected": "{ifname} disconnected", "tooltip-format-wifi": "{ifname} {essid} ({signalStrength:3}%)\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"on-click": "foot -T float nmtui"
},
"network#vpn0": {
"interval": 2,
"interface": "vpn0",
"format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength:3}%)",
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-disconnected": "<span foreground='#606060'> </span>{ifname}",
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-linked": "{ifname} linked",
"tooltip-format-disconnected": "{ifname} disconnected", "tooltip-format-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui" "on-click": "foot -T float nmtui"
}, },

View file

@ -24,10 +24,10 @@
// "custom/separator#right", // "custom/separator#right",
// "custom/mail", // "custom/mail",
// "custom/separator#right", // "custom/separator#right",
"network#wl0",
"network#en0", "network#en0",
"network#en1", "network#en1",
"network#en2", "network#en2",
"network#wl0",
"network#vpn0", "network#vpn0",
"custom/separator#right", "custom/separator#right",
"cpu", "cpu",
@ -150,6 +150,51 @@
"format-charging": "<span foreground='#268bd2'></span>{capacity:3}%", "format-charging": "<span foreground='#268bd2'></span>{capacity:3}%",
"format-icons": ["", "", "", "", ""] "format-icons": ["", "", "", "", ""]
}, },
"network#en0": {
"interval": 2,
"interface": "en0",
"format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-disconnected": "<span foreground='#606060'> </span>{ifname}",
"min-length": 8,
"max-length": 30,
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-ethernet": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-wifi": "{ifname} {essid} ({signalStrength:3}%)\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui"
},
"network#en1": {
"interval": 2,
"interface": "en1",
"format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-disconnected": "<span foreground='#606060'> </span>{ifname}",
"min-length": 8,
"max-length": 30,
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-ethernet": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-wifi": "{ifname} {essid} ({signalStrength:3}%)\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui"
},
"network#en2": {
"interval": 2,
"interface": "en2",
"format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-disconnected": "<span foreground='#606060'> </span>{ifname}",
"min-length": 8,
"max-length": 30,
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-ethernet": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-wifi": "{ifname} {essid} ({signalStrength:3}%)\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui"
},
"network#wl0": { "network#wl0": {
"interval": 2, "interval": 2,
"interface": "wl0", "interface": "wl0",
@ -159,47 +204,9 @@
"format-disconnected": "<span foreground='#606060'> </span>{ifname}", "format-disconnected": "<span foreground='#606060'> </span>{ifname}",
"min-length": 8, "min-length": 8,
"max-length": 30, "max-length": 30,
"tooltip-format": "{ifname} {essid} ({signalStrength:3}%)\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-linked": "{ifname} linked",
"tooltip-format-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui"
},
"network#en0": {
"interval": 2,
"interface": "en0",
"format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength:3}%)",
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-disconnected": "<span foreground='#606060'> </span>{ifname}",
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}", "tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-linked": "{ifname} linked", "tooltip-format-ethernet": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-disconnected": "{ifname} disconnected", "tooltip-format-wifi": "{ifname} {essid} ({signalStrength:3}%)\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"on-click": "foot -T float nmtui"
},
"network#en1": {
"interval": 2,
"interface": "en1",
"format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength:3}%)",
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-disconnected": "<span foreground='#606060'> </span>{ifname}",
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-linked": "{ifname} linked",
"tooltip-format-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui"
},
"network#en2": {
"interval": 2,
"interface": "en2",
"format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength:3}%)",
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-disconnected": "<span foreground='#606060'> </span>{ifname}",
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-linked": "{ifname} linked",
"tooltip-format-disconnected": "{ifname} disconnected", "tooltip-format-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui" "on-click": "foot -T float nmtui"
}, },
@ -207,12 +214,14 @@
"interval": 2, "interval": 2,
"interface": "vpn0", "interface": "vpn0",
"format": "{ifname}", "format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength:3}%)", "format-wifi": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}", "format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-disconnected": "<span foreground='#606060'> </span>{ifname}", "format-disconnected": "<span foreground='#606060'> </span>{ifname}",
"min-length": 8,
"max-length": 30,
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}", "tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-linked": "{ifname} linked", "tooltip-format-ethernet": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-wifi": "{ifname} {essid} ({signalStrength:3}%)\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-disconnected": "{ifname} disconnected", "tooltip-format-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui" "on-click": "foot -T float nmtui"
}, },

View file

@ -16,18 +16,17 @@
"custom/media", "custom/media",
"custom/separator#center", "custom/separator#center",
"pulseaudio", "pulseaudio",
"custom/separator#center", // "custom/separator#center",
"custom/card", // "custom/card",
"custom/separator#center", // "custom/separator#center",
"custom/mail", // "custom/mail",
"custom/separator#left", "custom/separator#left",
"custom/separator#space" "custom/separator#space"
], ],
"modules-right": [ "modules-right": [
"custom/separator#right", "custom/separator#right",
// "network#wl0",
"network#en0", "network#en0",
// "network#vpn0", // "network#wl0",
"custom/separator#right", "custom/separator#right",
"cpu", "cpu",
"memory", "memory",
@ -149,6 +148,21 @@
"format-charging": "<span foreground='#268bd2'></span>{capacity:3}%", "format-charging": "<span foreground='#268bd2'></span>{capacity:3}%",
"format-icons": ["", "", "", "", ""] "format-icons": ["", "", "", "", ""]
}, },
"network#en0": {
"interval": 2,
"interface": "en0",
"format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-disconnected": "<span foreground='#606060'> </span>{ifname}",
"min-length": 8,
"max-length": 30,
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-ethernet": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-wifi": "{ifname} {essid} ({signalStrength:3}%)\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui"
},
"network#wl0": { "network#wl0": {
"interval": 2, "interval": 2,
"interface": "wl0", "interface": "wl0",
@ -158,34 +172,9 @@
"format-disconnected": "<span foreground='#606060'> </span>{ifname}", "format-disconnected": "<span foreground='#606060'> </span>{ifname}",
"min-length": 8, "min-length": 8,
"max-length": 30, "max-length": 30,
"tooltip-format": "{ifname} {essid} ({signalStrength:3}%)\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-linked": "{ifname} linked",
"tooltip-format-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui"
},
"network#en0": {
"interval": 2,
"interface": "en0",
"format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength:3}%)",
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-disconnected": "<span foreground='#606060'> </span>{ifname}",
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}", "tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-linked": "{ifname} linked", "tooltip-format-ethernet": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-disconnected": "{ifname} disconnected", "tooltip-format-wifi": "{ifname} {essid} ({signalStrength:3}%)\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"on-click": "foot -T float nmtui"
},
"network#vpn0": {
"interval": 2,
"interface": "vpn0",
"format": "{ifname}",
"format-wifi": "<span foreground='#ebdbb2'> </span> {essid} ({signalStrength:3}%)",
"format-ethernet": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-linked": "<span foreground='#ebdbb2'> </span>{ifname}",
"format-disconnected": "<span foreground='#606060'> </span>{ifname}",
"tooltip-format": "{ifname}\n\t{ipaddr}/{cidr}\n  \t{bandwidthDownBits}\n  \t{bandwidthUpBits}",
"tooltip-format-linked": "{ifname} linked",
"tooltip-format-disconnected": "{ifname} disconnected", "tooltip-format-disconnected": "{ifname} disconnected",
"on-click": "foot -T float nmtui" "on-click": "foot -T float nmtui"
}, },