Add network to waybar

This commit is contained in:
Andrea Fazzi 2024-05-24 10:42:15 +02:00
parent 51fbb151fd
commit 9d4fcfef47
2 changed files with 13 additions and 1 deletions

View file

@ -17,6 +17,7 @@
"pulseaudio", "pulseaudio",
"battery", "battery",
"backlight", "backlight",
"network",
"clock", "clock",
"custom/power", "custom/power",
"custom/grimshot", "custom/grimshot",
@ -30,12 +31,15 @@
"deactivated": "" "deactivated": ""
} }
}, },
"network": {
"format": "{ipaddr} {essid} {signalStrength}% \uf1eb",
},
"battery": { "battery": {
"states": { "states": {
"warning": 30, "warning": 30,
"critical": 15 "critical": 15
}, },
"format": "{capacity}% {icon}", "format": "{capacity}% {time} {icon}",
"format-charging": "{capacity}% 󱐋", "format-charging": "{capacity}% 󱐋",
"format-plugged": "{capacity}% ", "format-plugged": "{capacity}% ",
"format-icons": [ "format-icons": [

View file

@ -15,6 +15,7 @@
#idle_inhibitor, #idle_inhibitor,
#pulseaudio, #pulseaudio,
#backlight, #backlight,
#network,
#mpris, #mpris,
#custom-power, #custom-power,
#custom-grimshot, #custom-grimshot,
@ -125,6 +126,13 @@ window#waybar.empty #window {
/* padding-right: 12px; */ /* padding-right: 12px; */
} }
#network {
background-color: @background;
color: #fff677;
border: 2px solid #fff677;
}
#battery { #battery {
background-color: @background; background-color: @background;
color: #97c4ff; color: #97c4ff;