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