Solved How can I set the default monitor in slim?

I'm using slim login manager. Problem is I have two monitors and a tv hooked up to my computer. The two monitors are DVI and the Tv is HDMI. By deafult xorg uses my tv as my default monitor when I start xorg. I fix this in my .xinitrc after login.

However I'm not sure how to do this for when slim starts up. If my tv isn't on I can't see the login box without turning the tv on, because xorg puts it on that as it's my default monitor.

Is there a way to run some xrandr commands before slim starts up? Open to any ideas. Thanks.
 
The location of the login box is set in the theme. You can modify that to move the login window more to the left (or right) of the viewport.

For the default theme look in /usr/local/share/slim/themes/default/slim.theme (/usr/local/share/slim/themes/<themename>/slim.theme).
 
By default xorg uses active monitor from the port as per the manufacturer. Normally the sequence set from the physical position or higher grade port e.g DP , HDMI , DVI . In your case HDMI is active. Probably this can not be changed.
 
Back
Top