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": {
"format": "{:%Y/%m/%d %H:%M}",
"format-alt": "{:%I:%M%p 周%u}",
@@ -103,11 +110,7 @@
"spacing": 0,
"tooltip-format": "{title}",
"on-click": "activate",
"on-click-middle": "close",
"ignore-list": ["Alacritty"],
"app_ids-mapping": {
"firefoxdeveloperedition": "firefox-developer-edition"
}
"on-click-middle": "close"
},
"tray": {

View File

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