fix(zeus): set XWayland primary monitor #215

Merged
alexion merged 1 commits from fix/xwayland-primary-monitor into main 2026-10-25 01:51:05 -04:00
Showing only changes of commit 1067b8fe26 - Show all commits
+25 -15
View File
@@ -1,6 +1,7 @@
{
config,
lib,
pkgs,
...
}:
# zeus — Ryzen desktop with AMD graphics.
@@ -49,20 +50,29 @@
modules.desktop.apps.steam.enable = true;
modules.desktop.apps.discord.enable = true;
home-manager.users.${config.user.name}.wayland.windowManager.hyprland.settings.monitor = [
{
output = "HDMI-A-1";
mode = "1920x1080@120";
position = "-1080x0";
scale = 1;
transform = 3;
}
{
output = "DP-3";
mode = "2560x1440@239.96";
position = "0x0";
scale = 1;
}
];
home-manager.users.${config.user.name}.wayland.windowManager.hyprland = {
settings.monitor = [
{
output = "HDMI-A-1";
mode = "1920x1080@120";
position = "-1080x0";
scale = 1;
transform = 3;
}
{
output = "DP-3";
mode = "2560x1440@239.96";
position = "0x0";
scale = 1;
}
];
# Legacy games use XWayland's primary output to select their launch monitor.
extraConfig = ''
hl.on("hyprland.start", function()
hl.exec_cmd("${lib.getExe pkgs.xrandr} --output DP-3 --primary")
end)
'';
};
}