Add battery module back to waybar

This commit is contained in:
Evie Litherland-Smith 2023-12-17 17:42:52 +00:00
parent 0d0aabf2b9
commit f6605bf1b8
2 changed files with 64 additions and 37 deletions

View file

@ -23,7 +23,8 @@
"mpris"
];
"modules-center" = [ ];
"modules-right" = [ "pulseaudio" "disk" "cpu" "memory" "clock" "tray" ];
"modules-right" =
[ "pulseaudio" "disk" "cpu" "memory" "clock" "battery" "tray" ];
# Module config
"custom/separator" = { format = "|"; };
"hyprland/workspaces" = {
@ -154,10 +155,10 @@
warning = 30;
critical = 15;
};
format = "{icon}";
format = "{icon} {capacity}%";
format-charging = "󰂄";
format-plugged = "󰚥";
tooltip-format = "{time} {capacity}%";
tooltip-format = "{time}";
format-icons = [ "󱃍" "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹" ];
};
tray = {

View file

@ -1,29 +1,35 @@
* {
font-family: "FiraMono Nerd Font";
font-size: 16px;
font-family: "FiraMono Nerd Font";
font-size: 16px;
}
window { background: transparent; }
window {
background: transparent;
}
window > box {
color: #c0caf5;
background: alpha(#1a1b26, 0.5);
box-shadow: inset 0 0 0 1px alpha(#bb9af7, 0.1), 0 0 0 1px alpha(#1a1b26, 0.5);
margin: 10px 10px 0px;
padding: 0px;
border: 1px solid #bb9af7;
border-radius: 10px;
color: #c0caf5;
background: alpha(#1a1b26, 0.5);
box-shadow:
inset 0 0 0 1px alpha(#bb9af7, 0.1),
0 0 0 1px alpha(#1a1b26, 0.5);
margin: 10px 10px 0px;
padding: 0px;
border: 1px solid #bb9af7;
border-radius: 10px;
}
tooltip {
color: #c0caf5;
/* Temp set alpha to 1.0 until I can sort out blurls issue */
background: alpha(#1a1b26, 1.0);
box-shadow: inset 0 0 0 1px alpha(#bb9af7, 0.1), 0 0 0 1px alpha(#1a1b26, 0.5);
border: 1px solid #bb9af7;
border-radius: 10px;
padding: 5px;
margin: 0px;
color: #c0caf5;
/* Temp set alpha to 1.0 until I can sort out blurls issue */
background: alpha(#1a1b26, 1);
box-shadow:
inset 0 0 0 1px alpha(#bb9af7, 0.1),
0 0 0 1px alpha(#1a1b26, 0.5);
border: 1px solid #bb9af7;
border-radius: 10px;
padding: 5px;
margin: 0px;
}
#workspaces,
@ -37,28 +43,48 @@ tooltip {
#temperature,
#clock,
#tray {
margin: 0px;
padding: 1px 5px;
margin: 0px;
padding: 1px 5px;
}
#workspaces,
#window,
#mpris,
#battery,
#tray { color: #c0caf5; }
#tray {
color: #c0caf5;
}
#workspaces button {
background: transparent;
color: #c0caf5;
margin: 0px;
padding: 0px 5px;
background: transparent;
color: #c0caf5;
margin: 0px;
padding: 0px 5px;
}
#workspaces button.empty {
color: #414868;
}
#workspaces button.active {
color: #bb9af7;
}
#workspaces button.urgent {
color: #f7768e;
}
#workspaces button.empty { color: #414868; }
#workspaces button.active { color: #bb9af7; }
#workspaces button.urgent { color: #f7768e; }
#pulseaudio { color: #f7768e; }
#disk { color: #e0af68; }
#cpu { color: #9ece6a; }
#memory { color: #7dcfff; }
#clock { color: #7aa2f7; }
#pulseaudio {
color: #f7768e;
}
#disk {
color: #e0af68;
}
#cpu {
color: #9ece6a;
}
#memory {
color: #7dcfff;
}
#clock {
color: #7aa2f7;
}
#battery {
color: #bb9af7;
}