feat: closest I'll get to blinking waybar
This commit is contained in:
parent
9d8c9a800b
commit
c72505dd56
|
@ -28,7 +28,9 @@ lib.optionalAttrs (!minimal) {
|
|||
};
|
||||
documentation = {
|
||||
dev.enable = true;
|
||||
doc.enable = false;
|
||||
man.enable = true;
|
||||
info.enable = false;
|
||||
nixos.enable = false;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,14 +3,15 @@
|
|||
client.via = "elisabeth";
|
||||
firewallRuleForNode.elisabeth.allowedTCPPorts = [config.services.octoprint.port];
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [3000];
|
||||
services.octoprint = {
|
||||
port = 3000;
|
||||
enable = true;
|
||||
plugins = ps: with ps; [ender3v2tempfix costestimation themeify dashboard];
|
||||
extraConfig = {
|
||||
accessControl = {
|
||||
addRemoteUser = true;
|
||||
trustRemoteUser = true;
|
||||
remoteUserHeader = "X-User";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
in "${domains.${hostName}}.${config.secrets.secrets.global.domains.web}";
|
||||
# TODO hard coded elisabeth nicht so schön
|
||||
ipOf = hostName:
|
||||
if nodes ? hostName
|
||||
if nodes ? ${hostName}
|
||||
then nodes.${hostName}.config.wireguard.elisabeth.ipv4
|
||||
else nodes."elisabeth-${hostName}".config.wireguard.elisabeth.ipv4;
|
||||
in {
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
format = "{icon} {capacity}%";
|
||||
format-icons = ["" "" "" "" "" "" "" "" ""];
|
||||
states = {
|
||||
critical = 15;
|
||||
critical = 10;
|
||||
warning = 20;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -96,13 +96,20 @@ button:hover {
|
|||
color: #000000;
|
||||
}
|
||||
}
|
||||
#battery {
|
||||
color: #ffffff;
|
||||
background-color: #000000;
|
||||
}
|
||||
|
||||
/* Using steps() instead of linear as a timing function to limit cpu usage */
|
||||
/* I would like for this to just blink sadly I don't think thats possible*/
|
||||
/* you cannot have step with 'jump-none' so you will always be not fully red or black*/
|
||||
/* and the animation delay is only applied once not in every iteration*/
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: #e05f65;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: steps(12);
|
||||
animation-timing-function: steps(2);
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue