[waybar] feat: moved vpn and network details into a group

This commit is contained in:
Simon Cornet 2024-06-04 15:22:25 +02:00
parent f75c32fcd5
commit 1da021775f

View File

@ -24,8 +24,7 @@
"disk",
"cpu",
"memory",
"custom/wireguard",
"network",
"group/connections",
"pulseaudio",
"backlight",
"battery",
@ -78,7 +77,7 @@
"custom/wireguard": {
"interval": 1,
"format": " {} ",
"format": "{}",
"exec": "$HOME/.dotfiles/apps/wireguard/wireguard.sh status",
"on-click": "$HOME/.dotfiles/apps/wireguard/wireguard.sh switch"
},
@ -118,8 +117,15 @@
},
"network": {
"tooltip": false,
"format-wifi": "󰣶 ",
"format-ethernet": "󰱓 ",
"on-click": "alacritty --class nmtui --command ~/.dotfiles/apps/hyprland/nmtui.sh"
},
"network#full": {
"tooltip": true,
"format-wifi": "󰣶 {essid}({signalStrength}%)",
"format-wifi": "{essid}({signalStrength}%)",
"format-ethernet": "󰱓 ",
"tooltip-format-wifi": "SSID: {essid}\nSignal Strength: {signalStrength}%\nIP: {ipaddr}\nNetmask: {netmask} (/{cidr})\nGateway: {gwaddr}",
"tooltip-format-ethernet": "IP: {ipaddr}\nNetmask: {netmask} (/{cidr})\nGateway: {gwaddr}",
@ -145,5 +151,19 @@
"tray": {
"icon-size": 13,
"spacing": 10
}
},
"group/connections": {
"orientation": "horizontal",
"drawer": {
"transition-duration": 500,
"children-class": "network",
"transition-left-to-right": true
},
"modules": [
"network",
"custom/wireguard",
"network#full",
]
},
}