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,8 +15,13 @@
enableIPv6 = true; enableIPv6 = true;
bridges = {
br0 = { interfaces = [ "eno1" ]; };
};
# Set up bridge network # Set up bridge network
interfaces.eno1 = { interfaces = {
eno1 = {
useDHCP = false; useDHCP = false;
wakeOnLan = { wakeOnLan = {
enable = true; enable = true;
@@ -26,11 +31,7 @@
}; };
}; };
bridges = { br0 = {
br0 = { interfaces = [ "eno1" ]; };
};
interfaces.br0 = {
useDHCP = false; useDHCP = false;
ipv4.addresses = [ ipv4.addresses = [
{ {
@@ -39,6 +40,8 @@
} }
]; ];
}; };
};
defaultGateway = { defaultGateway = {
address = "10.7.43.30"; address = "10.7.43.30";
interface = "br0"; interface = "br0";