fix(hyprland): mark zeus main output for xwayland
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
# zeus — Ryzen desktop with AMD graphics.
|
# zeus — Ryzen desktop with AMD graphics.
|
||||||
@@ -48,7 +49,8 @@
|
|||||||
modules.desktop.apps.steam.enable = true;
|
modules.desktop.apps.steam.enable = true;
|
||||||
modules.desktop.apps.vencord.enable = true;
|
modules.desktop.apps.vencord.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";
|
||||||
@@ -64,4 +66,18 @@
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Some XWayland games query RandR primary output instead of Hyprland's
|
||||||
|
# layout, so mark the main panel explicitly.
|
||||||
|
on = {
|
||||||
|
_args = [
|
||||||
|
"hyprland.start"
|
||||||
|
(lib.generators.mkLuaInline ''
|
||||||
|
function()
|
||||||
|
hl.exec_cmd("${pkgs.xrandr}/bin/xrandr --output DP-3 --primary")
|
||||||
|
end
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user