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

View file

@ -3,12 +3,16 @@
font-size: 16px; font-size: 16px;
} }
window { background: transparent; } window {
background: transparent;
}
window > box { window > box {
color: #c0caf5; color: #c0caf5;
background: alpha(#1a1b26, 0.5); background: alpha(#1a1b26, 0.5);
box-shadow: inset 0 0 0 1px alpha(#bb9af7, 0.1), 0 0 0 1px 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; margin: 10px 10px 0px;
padding: 0px; padding: 0px;
border: 1px solid #bb9af7; border: 1px solid #bb9af7;
@ -18,8 +22,10 @@ window > box {
tooltip { tooltip {
color: #c0caf5; color: #c0caf5;
/* Temp set alpha to 1.0 until I can sort out blurls issue */ /* Temp set alpha to 1.0 until I can sort out blurls issue */
background: alpha(#1a1b26, 1.0); background: alpha(#1a1b26, 1);
box-shadow: inset 0 0 0 1px alpha(#bb9af7, 0.1), 0 0 0 1px alpha(#1a1b26, 0.5); box-shadow:
inset 0 0 0 1px alpha(#bb9af7, 0.1),
0 0 0 1px alpha(#1a1b26, 0.5);
border: 1px solid #bb9af7; border: 1px solid #bb9af7;
border-radius: 10px; border-radius: 10px;
padding: 5px; padding: 5px;
@ -44,8 +50,9 @@ tooltip {
#workspaces, #workspaces,
#window, #window,
#mpris, #mpris,
#battery, #tray {
#tray { color: #c0caf5; } color: #c0caf5;
}
#workspaces button { #workspaces button {
background: transparent; background: transparent;
@ -53,12 +60,31 @@ tooltip {
margin: 0px; margin: 0px;
padding: 0px 5px; padding: 0px 5px;
} }
#workspaces button.empty { color: #414868; } #workspaces button.empty {
#workspaces button.active { color: #bb9af7; } color: #414868;
#workspaces button.urgent { color: #f7768e; } }
#workspaces button.active {
color: #bb9af7;
}
#workspaces button.urgent {
color: #f7768e;
}
#pulseaudio { color: #f7768e; } #pulseaudio {
#disk { color: #e0af68; } color: #f7768e;
#cpu { color: #9ece6a; } }
#memory { color: #7dcfff; } #disk {
#clock { color: #7aa2f7; } color: #e0af68;
}
#cpu {
color: #9ece6a;
}
#memory {
color: #7dcfff;
}
#clock {
color: #7aa2f7;
}
#battery {
color: #bb9af7;
}