waybar(network): add wireguard section

This commit is contained in:
surtur 2021-12-26 03:37:57 +01:00
parent e1b5a3e651
commit a5dacbbd4f
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 15 additions and 1 deletions

@ -5,7 +5,7 @@
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": ["sway/window"],
"modules-right": ["tray", "pulseaudio", "network", "temperature", "custom/storage", "memory", "cpu", "backlight", "sway/language", "battery", "clock#date", "clock#time"],
"modules-right": ["tray", "pulseaudio", "network", "network#wireguard", "temperature", "custom/storage", "memory", "cpu", "backlight", "sway/language", "battery", "clock#date", "clock#time"],
"sway/workspaces": {
"all-outputs": false,
"format": "{name}",
@ -78,6 +78,15 @@
"rotate": true,
"tooltip": false
},
"network#wireguard": {
"interface": "*wg*",
"format": "🐉",
"format-ethernet": "🐉",
"format-linked": "<span foreground='#ffbf00'>{ifname}:</span> (No IP)🐉",
"format-disconnected": "",
"format-alt": "<span foreground='#929292'>{ifname}:</span> {ipaddr}/{cidr}🐉",
"tooltip": false
},
"temperature": {
"format": "<span foreground='#929292'></span>{temperatureC}°C",
"thermal-zone": 2,

@ -96,6 +96,11 @@ window#waybar.solo {
color: red;
}
#network.wireguard {
margin: 0 3px 0 0;
min-width: 0;
}
#temperature {
margin: 0 3px ;
min-width: 0;