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
+11 -1
View File
@@ -1,6 +1,7 @@
{ {
config, config,
lib, lib,
pkgs,
... ...
}: }:
# zeus — Ryzen desktop with AMD graphics. # zeus — Ryzen desktop with AMD graphics.
@@ -49,7 +50,8 @@
modules.desktop.apps.steam.enable = true; modules.desktop.apps.steam.enable = true;
modules.desktop.apps.discord.enable = true; modules.desktop.apps.discord.enable = true;
home-manager.users.${config.user.name}.wayland.windowManager.hyprland.settings.monitor = [ home-manager.users.${config.user.name}.wayland.windowManager.hyprland = {
settings.monitor = [
{ {
output = "HDMI-A-1"; output = "HDMI-A-1";
mode = "1920x1080@120"; mode = "1920x1080@120";
@@ -65,4 +67,12 @@
} }
]; ];
# 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)
'';
};
} }