waybar: added charging indicator/

This commit is contained in:
Aly Raffauf 2024-03-26 22:16:04 -04:00
parent 945e50e641
commit aa6bde6dde
2 changed files with 14 additions and 12 deletions

View file

@ -25,8 +25,8 @@
"clock"
];
"hyprland/workspaces" = { "
all-outputs" = true;
"hyprland/workspaces" = {
"all-outputs" = true;
"format" = "󰧞";
};
"hyprland/window" = { "max-length" = 100; };
@ -36,13 +36,12 @@
"format" = "{:%I:%M%p}";
};
"battery" = {
"states" = {
"critical" = 20;
"normal" = 90;
"full" = 100;
};
"states" = { "critical" = 20; };
"format" = "{icon}";
"format-icons" = [ "󰁺" "󰁼" "󰁿" "󰂁" "󰁹" ];
"tooltip-format" = ''
{capacity}%: {timeTo}.
Using {power} watts.'';
};
"bluetooth" = {
"format" = "󰂯 {status}";
@ -82,7 +81,7 @@
"power-profiles-daemon" = {
"format" = "{icon}";
"tooltip-format" = ''
Power profile: {profile}
Profile: {profile}
Driver: {driver}'';
"tooltip" = true;
"format-icons" = {

View file

@ -20,7 +20,10 @@ window#waybar {
padding: 0 10px;
margin: 0 5px;
}
#battery.critical { color: #e78284; }
#battery.full { color: #ca9ee6; }
#battery.normal { color: #FAFAFA; }
#battery { color: #FAFAFA; }
#battery.charging {
color: #ca9ee6;
}
#battery.critical:not(.charging) {
color: #e78284;
}