mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 12:23:56 -05:00
waybar: added charging indicator/
This commit is contained in:
parent
945e50e641
commit
aa6bde6dde
|
@ -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" = {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue