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

View file

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