upgrade battery icons to swap when charging/discharging
This commit is contained in:
@@ -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}";
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user