waybar unit-specific network configs

This commit is contained in:
Henrik Bakken
2025-11-22 20:55:23 +01:00
parent 5468143a10
commit 3a40f7d1d7
5 changed files with 42 additions and 11 deletions
-11
View File
@@ -63,17 +63,6 @@
"on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 120x45 isd'" "on-click": "swaymsg exec 'footclient --app-id floating_shell --window-size-chars 120x45 isd'"
}, },
"network": {
"format-disabled": " Disabled",
"format-wifi": " {bandwidthDownBits:>} 󰶡 {bandwidthUpBits:>} 󰶣 ({signalStrength}%)",
"tooltip-format-wifi": "{essid}",
"format-ethernet": "󰈀 {bandwidthDownBits:>} 󰶡 {bandwidthUpBits:>} 󰶣",
"tooltip-format-ethernet": "{ifname}: {ipaddr}/{cidr}",
"format-disconnected": " Disconnected",
"on-click": "footclient --app-id floating_shell --window-size-chars 60x45 -e nmtui",
"interval": 2
},
// Configuration - modules-right // Configuration - modules-right
"idle_inhibitor": { "idle_inhibitor": {
@@ -1,4 +1,15 @@
{ {
"network": {
"interface": "enp6s0",
"format-disabled": " Disabled",
"format-wifi": " {bandwidthDownBits:>} 󰶡 {bandwidthUpBits:>} 󰶣 ({signalStrength}%)",
"tooltip-format-wifi": "{essid}",
"format-ethernet": "󰈀 {bandwidthDownBits:>} 󰶡 {bandwidthUpBits:>} 󰶣",
"tooltip-format-ethernet": "{ifname}: {ipaddr}/{cidr}",
"format-disconnected": " Disconnected",
"on-click": "footclient --app-id floating_shell --window-size-chars 60x45 -e nmtui",
"interval": 2
},
"disk#hdd1": { "disk#hdd1": {
"path": "/mnt/hdd1", "path": "/mnt/hdd1",
"interval": 30, "interval": 30,
@@ -1,4 +1,15 @@
{ {
"network": {
"interface": "wlan0",
"format-disabled": " Disabled",
"format-wifi": " {bandwidthDownBits:>} 󰶡 {bandwidthUpBits:>} 󰶣 ({signalStrength}%)",
"tooltip-format-wifi": "{essid}",
"format-ethernet": "󰈀 {bandwidthDownBits:>} 󰶡 {bandwidthUpBits:>} 󰶣",
"tooltip-format-ethernet": "{ifname}: {ipaddr}/{cidr}",
"format-disconnected": " Disconnected",
"on-click": "footclient --app-id floating_shell --window-size-chars 60x45 -e nmtui",
"interval": 2
},
"disk#hdd1": { "disk#hdd1": {
"path": "/mnt/hdd1", "path": "/mnt/hdd1",
"interval": 30, "interval": 30,
@@ -1,4 +1,14 @@
{ {
"network": {
"format-disabled": " Disabled",
"format-wifi": " {bandwidthDownBits:>} 󰶡 {bandwidthUpBits:>} 󰶣 ({signalStrength}%)",
"tooltip-format-wifi": "{essid}",
"format-ethernet": "󰈀 {bandwidthDownBits:>} 󰶡 {bandwidthUpBits:>} 󰶣",
"tooltip-format-ethernet": "{ifname}: {ipaddr}/{cidr}",
"format-disconnected": " Disconnected",
"on-click": "footclient --app-id floating_shell --window-size-chars 60x45 -e nmtui",
"interval": 2
},
"modules-right": [ "modules-right": [
"idle_inhibitor", "idle_inhibitor",
"cpu", "cpu",
@@ -1,4 +1,14 @@
{ {
"network": {
"format-disabled": " Disabled",
"format-wifi": " {bandwidthDownBits:>} 󰶡 {bandwidthUpBits:>} 󰶣 ({signalStrength}%)",
"tooltip-format-wifi": "{essid}",
"format-ethernet": "󰈀 {bandwidthDownBits:>} 󰶡 {bandwidthUpBits:>} 󰶣",
"tooltip-format-ethernet": "{ifname}: {ipaddr}/{cidr}",
"format-disconnected": " Disconnected",
"on-click": "footclient --app-id floating_shell --window-size-chars 60x45 -e nmtui",
"interval": 2
},
"modules-right": [ "modules-right": [
"idle_inhibitor", "idle_inhibitor",
"cpu", "cpu",