#Forcing primary monitor
17 messages · Page 1 of 1 (latest)
hyprland does not have a notion of primary monitor. games are typically going to pick the monitor that is at 0x0 in the global screen space.
you can see where your monitors are in global space with
hyprctl monitors
you can try and set your monitors up so that the one you want to be main is at 0x0
ex. monitor = eDP-1, prefered, 0x0, 1
The “primary” monitor they open on is at 4880x0, so the furthest to the right of the 3 I have
Seems to be tied to the monitors ID
could be. it's hard to know for sure as every application could pick a different one
since like i said. hyprland itself doesnt offer a primary monitor. it works off a global coordinate system
you can for apps to start on specific monitors though. but the last guy i helped with this we ended up passing the resolution directly to the game
that was starcitizen though
everygame will probably have a different way to do it
Well in my case it consistently picks the one on the right, if I unplug it and plug it back in it loses priority, however this resets on reboot. I can just set game launch options to force it for the time being.
if you want it to start on a specific monitor you can add a windowrule to your hyprland configs to put it on the monitor/workspace you want
windowrule = workspace 5 silent, class:discord
this is my config for discord for instance
workspace config might help as well. I've been struggling with similar issues even to the point where it seemed like some games would try to take the resolution of the "wrong" monitor. Now my "primary" monitor is at 0x0 and workspace 1 is bound to it and set as default: workspace=1,monitor:DP-1,default:true
so far, that seems to have done the trick, but it's been very flaky with other attempts to control that so for all I know things will still go wonky with some future reboot.
I've tried a few things, using workspaces, window rules, gamerules, but the issue remained. If I forced the steam games to take a higher res from the launch options, it would give a higher resolution in the menus but the textures seemed all off
Still, am thinking that perhaps for my use cases, something like KDE plasma is better suited than Hyprland