feat: battery life

This commit is contained in:
DACHXY 2025-04-21 13:12:57 +08:00
parent c392a1eaff
commit 69447ae515
5 changed files with 13 additions and 3 deletions

View file

@ -185,9 +185,9 @@ in
on-click = "${terminalRun} cava";
};
battery = {
full-at = 96;
full-at = 80;
states = {
good = 95;
good = 80;
warning = 30;
critical = 15;
};

View file

@ -159,7 +159,7 @@ tooltip label {
}
#battery.good {
color: #a6da95;
color: #ebdbb2;
}
#battery.warning {

View file

@ -11,6 +11,7 @@
../../modules/virtualization.nix
../../modules/wine.nix
../../modules/wireguard.nix
../../modules/battery-life.nix
];
home-manager = {

View file

@ -0,0 +1,8 @@
{
services.tlp = {
enable = true;
settings = {
STOP_CHARGE_THRESH_BAT0 = 80;
};
};
}

View file

@ -4,6 +4,7 @@
enableIPv6 = false;
firewall = {
enable = true;
allowedTCPPorts = [ 8099 ];
};
};
}