style: waybar battery

This commit is contained in:
DACHXY 2025-01-15 02:02:55 +08:00
parent f5fcb410a8
commit 7b95597a9d
2 changed files with 7 additions and 5 deletions

View file

@ -175,11 +175,11 @@
"warning": 30, "warning": 30,
"critical": 15 "critical": 15
}, },
"format": "<span color='#ebdbb2'>{capacity}%</span> {icon}", "format": "{icon} {capacity}%",
"format-icons": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"], "format-icons": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"],
"format-charging": "<span color='#ebdbb2'>{capacity}%</span> 󰂄", "format-charging": "󰂄 {capacity}%",
"format-plugged": "<span color='#ebdbb2'>{capacity}%</span> 󰂄", "format-plugged": "󰂄 {capacity}%",
"format-alt": "<span color='#ebdbb2'>{time}</span> {icon}" "format-alt": "{icon} {time}"
}, },
"network" : { "network" : {

View file

@ -50,6 +50,7 @@ tooltip label {
#temperature, #temperature,
#workspaces, #workspaces,
#custom-os, #custom-os,
#battery,
#custom-swaync { #custom-swaync {
background: alpha(#fff, 0.05); background: alpha(#fff, 0.05);
border-radius: 6px; border-radius: 6px;
@ -74,7 +75,8 @@ tooltip label {
#cpu, #cpu,
#memory #memory
#temperature, #temperature,
#network { #network,
#battery {
margin-left: 4px; margin-left: 4px;
} }