feat: migrate host Hyprland configs to Lua (Hyprland 0.55+)

- m3-kratos/home.nix: use hl.monitor({}), hl.workspace_rule({}),
  hl.window_rule({}) table-based Lua API
- m3-ares/home.nix: same Lua API + tuxedo-backlight via hl.on()
- Update flake.lock: home-manager -> 74f170c6 (2026-05-18)
This commit is contained in:
2026-05-18 17:27:15 +02:00
parent af08084692
commit 826569ed98
3 changed files with 46 additions and 41 deletions
+19 -18
View File
@@ -36,31 +36,32 @@ with lib; {
};
}
# ── Hyprland monitor layout ──
# ── Hyprland monitor layout & host-specific rules ──
(mkIf config.desktop.wm.hyprland.enable {
wayland.windowManager.hyprland = {
enable = true;
settings = {
# Dual monitor: DP-1 left, DP-2 right
monitor = [
"DP-1,2560x1440@144,0x0,1"
"DP-2,2560x1440@144,2560x0,1"
{ output = "DP-1"; mode = "2560x1440@144"; position = "0x0"; scale = 1; }
{ output = "DP-2"; mode = "2560x1440@144"; position = "2560x0"; scale = 1; }
];
workspace = [
"1, monitor:DP-1, default:true"
"2, monitor:DP-1"
"3, monitor:DP-1"
"4, monitor:DP-2"
"5, monitor:DP-2"
"6, monitor:DP-2"
"7, monitor:DP-2"
workspace_rule = [
{ workspace = 1; monitor = "DP-1"; default = true; }
{ workspace = 2; monitor = "DP-1"; }
{ workspace = 3; monitor = "DP-1"; }
{ workspace = 4; monitor = "DP-2"; }
{ workspace = 5; monitor = "DP-2"; }
{ workspace = 6; monitor = "DP-2"; }
{ workspace = 7; monitor = "DP-2"; }
];
windowrule = [
"match:class dev.zed.Zed, workspace 1"
"match:class Msty, workspace 1"
"match:class ^(com.obsproject.Studio)$, workspace 2"
"match:class ^(brave-browser)$, workspace 4, opacity 1.0"
"match:class ^(vivaldi-stable)$, workspace 4, opacity 1.0"
"match:class ^steam_app_\\d+$, idle_inhibit focus"
window_rule = [
{ match = { class = "dev.zed.Zed" }; workspace = "1"; }
{ match = { class = "Msty" }; workspace = "1"; }
{ match = { class = "^com.obsproject.Studio$" }; workspace = "2"; }
{ match = { class = "^(brave-browser)$" }; workspace = "4"; opacity = 1.0; }
{ match = { class = "^(vivaldi-stable)$" }; workspace = "4"; opacity = 1.0; }
{ match = { class = "^steam_app_\\d+$" }; idle_inhibit = "focus"; }
];
};
};