upgrade battery icons to swap when charging/discharging

This commit is contained in:
mjallen18
2025-07-08 10:16:14 -05:00
parent f98c31671d
commit 0bcf196587
2 changed files with 32 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ in
moduleStyle = { moduleStyle = {
window = { window = {
margin-right = "100rem"; margin-right = "75rem";
}; };
temperature = { temperature = {
location = "${theme.waybar.borderLeft}"; location = "${theme.waybar.borderLeft}";

View File

@@ -200,14 +200,42 @@ in
}; };
battery = { battery = {
# bat = "macsmc-ac"; # bat = "macsmc-battery";
interval = 60; interval = 60;
# statuses: 'Charging', 'Discharging'
states = { states = {
warning = 30; warning = 30;
critical = 15; critical = 15;
}; };
format = "{capacity}% {icon}"; format = "{capacity}% {icon}";
format-icons = ["" "" "" "" ""]; format-icons = {
default = [
"󰂃" # critical
"󰁺" # 10%
"󰁻" # 20%
"󰁼" # 30%
"󰁽" # 40%
"󰁾" # 50%
"󰁿" # 60%
"󰂀" # 70%
"󰂁" # 80%
"󰂂" # 90%
"󰁹" # 100%
];
charging = [
"󰢟" # critical
"󰢜" # 10%
"󰂆" # 20%
"󰂇" # 30%
"󰂈" # 40%
"󰢝" # 50%
"󰂉" # 60%
"󰢞" # 70%
"󰂊" # 80%
"󰂋" # 90%
"󰂅" # 100%
];
};
max-length = 25; max-length = 25;
}; };
@@ -306,6 +334,7 @@ in
${defaultOpacity} ${defaultOpacity}
${defaultCenterOptions} ${defaultCenterOptions}
border-radius: 0; border-radius: 0;
min-width: 3rem;
} }
#clock { #clock {