[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",
@ -78,7 +77,7 @@
"custom/wireguard": { "custom/wireguard": {
"interval": 1, "interval": 1,
"format": " {} ", "format": "{}",
"exec": "$HOME/.dotfiles/apps/wireguard/wireguard.sh status", "exec": "$HOME/.dotfiles/apps/wireguard/wireguard.sh status",
"on-click": "$HOME/.dotfiles/apps/wireguard/wireguard.sh switch" "on-click": "$HOME/.dotfiles/apps/wireguard/wireguard.sh switch"
}, },
@ -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",
]
},
} }