Improve battery and network in waybar

This commit is contained in:
pancakes 2025-08-08 16:09:54 +10:00
parent 0e386d6cde
commit 4a5ea07130
Signed by: pancakes
SSH key fingerprint: SHA256:dXkdWQrTpQspsYrfPT22O5KUAPNzQoIBnIBjRVSd3hI
2 changed files with 12 additions and 3 deletions

View file

@ -16,8 +16,8 @@
"modules-right": [ "modules-right": [
"tray", "tray",
"idle_inhibitor", "idle_inhibitor",
"battery",
"power-profiles-daemon", "power-profiles-daemon",
"battery",
"wireplumber", "wireplumber",
"bluetooth", "bluetooth",
"network" "network"
@ -56,7 +56,14 @@
} }
}, },
"battery": { "battery": {
"format": "{icon} {capacity}%" "format": "{icon} {capacity}%",
"format-icons": [
"",
"",
"",
"",
""
]
}, },
"power-profiles-daemon": { "power-profiles-daemon": {
"format-icons": { "format-icons": {
@ -83,6 +90,7 @@
"format-ethernet": "󰛳 Wired", "format-ethernet": "󰛳 Wired",
"format-wifi": " {essid}", "format-wifi": " {essid}",
"format-disconnected": "󰅛 Disconnected", "format-disconnected": "󰅛 Disconnected",
"on-click": "$TERMINAL -e nmtui",
"tooltip-format-ethernet": "Interface: {ifname}\nIP: {ipaddr}\nGateway: {gwaddr}", "tooltip-format-ethernet": "Interface: {ifname}\nIP: {ipaddr}\nGateway: {gwaddr}",
"tooltip-format-wifi": "{frequency}GHz {signalStrength}%\n\nInterface: {ifname}\nIP: {ipaddr}\nGateway: {gwaddr}", "tooltip-format-wifi": "{frequency}GHz {signalStrength}%\n\nInterface: {ifname}\nIP: {ipaddr}\nGateway: {gwaddr}",
"tooltip-format-disconnected": "" "tooltip-format-disconnected": ""

View file

@ -100,7 +100,8 @@ button:hover {
color: #15161e; color: #15161e;
} }
#battery.critical:not(.charging) { #battery.critical:not(.charging),
#battery.warning:not(.charging) {
background-color: #f7768e; background-color: #f7768e;
color: #15161e; color: #15161e;
} }