#Forcing primary monitor

17 messages · Page 1 of 1 (latest)

cold nimbus
#

Anyone know how to force-set a primary monitor? When I run hyprctl monitors, my HDMI display always gets ID:0 so apps open there by default, even though my layout’s correct and workspace 1 is on my main screen. Trying to make that one the actual “primary.” Any way to override or set that manually?

flat jay
#

#omarchy-gaming message

#

@dusky dune have you managed to solve your issue?

inner crypt
cold nimbus
#

Seems to be tied to the monitors ID

inner crypt
#

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

cold nimbus
#

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.

inner crypt
#

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

fathom prism
#

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.

dusky dune
#

Still, am thinking that perhaps for my use cases, something like KDE plasma is better suited than Hyprland