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

@ -1,29 +1,35 @@
* { * {
font-family: "FiraMono Nerd Font"; font-family: "FiraMono Nerd Font";
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:
margin: 10px 10px 0px; inset 0 0 0 1px alpha(#bb9af7, 0.1),
padding: 0px; 0 0 0 1px alpha(#1a1b26, 0.5);
border: 1px solid #bb9af7; margin: 10px 10px 0px;
border-radius: 10px; padding: 0px;
border: 1px solid #bb9af7;
border-radius: 10px;
} }
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:
border: 1px solid #bb9af7; inset 0 0 0 1px alpha(#bb9af7, 0.1),
border-radius: 10px; 0 0 0 1px alpha(#1a1b26, 0.5);
padding: 5px; border: 1px solid #bb9af7;
margin: 0px; border-radius: 10px;
padding: 5px;
margin: 0px;
} }
#workspaces, #workspaces,
@ -37,28 +43,48 @@ tooltip {
#temperature, #temperature,
#clock, #clock,
#tray { #tray {
margin: 0px; margin: 0px;
padding: 1px 5px; padding: 1px 5px;
} }
#workspaces, #workspaces,
#window, #window,
#mpris, #mpris,
#battery, #tray {
#tray { color: #c0caf5; } color: #c0caf5;
}
#workspaces button { #workspaces button {
background: transparent; background: transparent;
color: #c0caf5; color: #c0caf5;
margin: 0px; margin: 0px;
padding: 0px 5px; 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; } #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;
}