fix(zeus): set XWayland primary monitor #215
@@ -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)
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user