feat: closest I'll get to blinking waybar

This commit is contained in:
Patrick 2024-07-13 01:04:40 +02:00
parent 9d8c9a800b
commit c72505dd56
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
5 changed files with 14 additions and 4 deletions

View file

@ -28,7 +28,9 @@ lib.optionalAttrs (!minimal) {
}; };
documentation = { documentation = {
dev.enable = true; dev.enable = true;
doc.enable = false;
man.enable = true; man.enable = true;
info.enable = false; info.enable = false;
nixos.enable = false;
}; };
} }

View file

@ -3,14 +3,15 @@
client.via = "elisabeth"; client.via = "elisabeth";
firewallRuleForNode.elisabeth.allowedTCPPorts = [config.services.octoprint.port]; firewallRuleForNode.elisabeth.allowedTCPPorts = [config.services.octoprint.port];
}; };
networking.firewall.allowedTCPPorts = [3000];
services.octoprint = { services.octoprint = {
port = 3000; port = 3000;
enable = true; enable = true;
plugins = ps: with ps; [ender3v2tempfix costestimation themeify dashboard];
extraConfig = { extraConfig = {
accessControl = { accessControl = {
addRemoteUser = true; addRemoteUser = true;
trustRemoteUser = true; trustRemoteUser = true;
remoteUserHeader = "X-User";
}; };
}; };
}; };

View file

@ -30,7 +30,7 @@
in "${domains.${hostName}}.${config.secrets.secrets.global.domains.web}"; in "${domains.${hostName}}.${config.secrets.secrets.global.domains.web}";
# TODO hard coded elisabeth nicht so schön # TODO hard coded elisabeth nicht so schön
ipOf = hostName: ipOf = hostName:
if nodes ? hostName if nodes ? ${hostName}
then nodes.${hostName}.config.wireguard.elisabeth.ipv4 then nodes.${hostName}.config.wireguard.elisabeth.ipv4
else nodes."elisabeth-${hostName}".config.wireguard.elisabeth.ipv4; else nodes."elisabeth-${hostName}".config.wireguard.elisabeth.ipv4;
in { in {

View file

@ -66,7 +66,7 @@
format = "{icon} {capacity}%"; format = "{icon} {capacity}%";
format-icons = ["" "" "" "" "" "" "" "" ""]; format-icons = ["" "" "" "" "" "" "" "" ""];
states = { states = {
critical = 15; critical = 10;
warning = 20; warning = 20;
}; };
}; };

View file

@ -96,13 +96,20 @@ button:hover {
color: #000000; color: #000000;
} }
} }
#battery {
color: #ffffff;
background-color: #000000;
}
/* Using steps() instead of linear as a timing function to limit cpu usage */ /* 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) { #battery.critical:not(.charging) {
background-color: #e05f65; background-color: #e05f65;
animation-name: blink; animation-name: blink;
animation-duration: 0.5s; animation-duration: 0.5s;
animation-timing-function: steps(12); animation-timing-function: steps(2);
animation-iteration-count: infinite; animation-iteration-count: infinite;
animation-direction: alternate; animation-direction: alternate;
} }