feat: battery life
This commit is contained in:
parent
c392a1eaff
commit
69447ae515
5 changed files with 13 additions and 3 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ tooltip label {
|
|||
}
|
||||
|
||||
#battery.good {
|
||||
color: #a6da95;
|
||||
color: #ebdbb2;
|
||||
}
|
||||
|
||||
#battery.warning {
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
../../modules/virtualization.nix
|
||||
../../modules/wine.nix
|
||||
../../modules/wireguard.nix
|
||||
../../modules/battery-life.nix
|
||||
];
|
||||
|
||||
home-manager = {
|
||||
|
|
|
|||
8
system/modules/battery-life.nix
Normal file
8
system/modules/battery-life.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
services.tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
STOP_CHARGE_THRESH_BAT0 = 80;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -4,6 +4,7 @@
|
|||
enableIPv6 = false;
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 8099 ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue