fix: networking renaming

feat(waybar): blinks after all
This commit is contained in:
Patrick 2024-07-13 16:57:59 +02:00
parent c72505dd56
commit e0cdea8c88
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
7 changed files with 21 additions and 25 deletions

View file

@ -8,7 +8,7 @@
systemd.network.networks = {
"01-lan1" = {
DHCP = "yes";
matchConfig.MACAddress = config.secrets.secrets.local.networking.lan01.mac;
matchConfig.MACAddress = config.secrets.secrets.local.networking.interfaces.lan01.mac;
networkConfig = {
IPv6PrivacyExtensions = "yes";
MulticastDNS = true;
@ -18,7 +18,7 @@
};
"01-wlan1" = {
DHCP = "yes";
matchConfig.MACAddress = config.secrets.secrets.local.networking.wlan01.mac;
matchConfig.MACAddress = config.secrets.secrets.local.networking.interfaces.wlan01.mac;
networkConfig = {
IPv6PrivacyExtensions = "yes";
MulticastDNS = true;

View file

@ -31,7 +31,7 @@
systemd.network.networks = {
"01-lan1" = {
DHCP = "yes";
matchConfig.MACAddress = config.secrets.secrets.local.networking.lan01.mac;
matchConfig.MACAddress = config.secrets.secrets.local.networking.interfaces.lan01.mac;
networkConfig = {
IPv6PrivacyExtensions = "yes";
MulticastDNS = true;
@ -42,7 +42,7 @@
};
"02-lan1" = {
DHCP = "yes";
matchConfig.MACAddress = config.secrets.secrets.local.networking.lan02.mac;
matchConfig.MACAddress = config.secrets.secrets.local.networking.interfaces.lan02.mac;
networkConfig = {
IPv6PrivacyExtensions = "yes";
MulticastDNS = true;
@ -53,7 +53,7 @@
};
"01-wlan1" = {
DHCP = "yes";
matchConfig.MACAddress = config.secrets.secrets.local.networking.wlan01.mac;
matchConfig.MACAddress = config.secrets.secrets.local.networking.interfaces.wlan01.mac;
networkConfig = {
IPv6PrivacyExtensions = "yes";
MulticastDNS = true;

View file

@ -1,4 +1,3 @@
window#waybar {
background-color: #000000;
border-bottom: 3px solid alpha(#485263, 0.7);
@ -85,22 +84,29 @@ button:hover {
}
#battery {
color: #ffffff;
background-color: #000000;
}
#battery.charging,
#battery.plugged {
background-color: #26A65B;
}
@keyframes blink {
to {
background-color: #ffffff;
color: #000000;
}
}
#battery {
color: #ffffff;
0%,
49% {
background-color: #000000;
}
50%,
100% {
background-color: #e05f65;
}
}
/* 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*/
@ -108,10 +114,9 @@ button:hover {
#battery.critical:not(.charging) {
background-color: #e05f65;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: steps(2);
animation-duration: 2s;
animation-timing-function: steps(12);
animation-iteration-count: infinite;
animation-direction: alternate;
}
#battery.warning:not(.charging) {

View file

@ -18,11 +18,6 @@
user = "root";
};
"gojo" = {
hostname = "gojo.local";
user = "root";
};
"patricknix" = {
hostname = "patricknix.local";
user = "root";
@ -37,10 +32,6 @@
hostname = "desktopnix.local";
user = "root";
};
"binex" = {
hostname = "praksrv.sec.in.tum.de";
user = "team402";
};
"*" = {
user = "root";
identitiesOnly = true;