update network and waybar component

This commit is contained in:
2025-04-26 20:22:51 +08:00
parent 3088f2aea8
commit 992fee7199
2 changed files with 30 additions and 24 deletions

View File

@@ -89,6 +89,13 @@
} }
}, },
"hyprland/window": {
"format": "{title}",
"tooltip-format": "{title}",
"rewrite": { "^(.{30}).+": "$1..." },
"separate-outputs": true
},
"clock": { "clock": {
"format": "{:%Y/%m/%d %H:%M}", "format": "{:%Y/%m/%d %H:%M}",
"format-alt": "{:%I:%M%p 周%u}", "format-alt": "{:%I:%M%p 周%u}",
@@ -103,11 +110,7 @@
"spacing": 0, "spacing": 0,
"tooltip-format": "{title}", "tooltip-format": "{title}",
"on-click": "activate", "on-click": "activate",
"on-click-middle": "close", "on-click-middle": "close"
"ignore-list": ["Alacritty"],
"app_ids-mapping": {
"firefoxdeveloperedition": "firefox-developer-edition"
}
}, },
"tray": { "tray": {

View File

@@ -15,30 +15,33 @@
enableIPv6 = true; enableIPv6 = true;
# Set up bridge network
interfaces.eno1 = {
useDHCP = false;
wakeOnLan = {
enable = true;
policy = [
"magic"
];
};
};
bridges = { bridges = {
br0 = { interfaces = [ "eno1" ]; }; br0 = { interfaces = [ "eno1" ]; };
}; };
interfaces.br0 = { # Set up bridge network
useDHCP = false; interfaces = {
ipv4.addresses = [ eno1 = {
{ useDHCP = false;
address = "10.7.43.10"; wakeOnLan = {
prefixLength = 24; enable = true;
} policy = [
]; "magic"
];
};
};
br0 = {
useDHCP = false;
ipv4.addresses = [
{
address = "10.7.43.10";
prefixLength = 24;
}
];
};
}; };
defaultGateway = { defaultGateway = {
address = "10.7.43.30"; address = "10.7.43.30";
interface = "br0"; interface = "br0";