Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set primary display #49

Open
yoshegg opened this issue May 15, 2018 · 6 comments
Open

Set primary display #49

yoshegg opened this issue May 15, 2018 · 6 comments

Comments

@yoshegg
Copy link

yoshegg commented May 15, 2018

I know that there were some discussions about this topic, but are there any news?

I'm using a Matrox TripleHead2Go and Ubuntu with Gnome, unfortunately the main display will always be the leftmost.

I also tried to just leave out fakexrandr and only use xrandr and its --setmonitor option, but without success (cf. issue #48)

@phillipberndt
Copy link
Owner

No, there's no news. You'd need to hook XRRGetOutputPrimary to do this (Example of how the call is used and what applications expect to receive in return), which should be straightforward. The main question is how to configure this (in the GUI and how to store the information in the config file). I won't find time for this any time soon, but feel free to open a PR.

@yoshegg
Copy link
Author

yoshegg commented May 15, 2018

Thank you for your explanation. Unfortunately I don't know much about any of the involved stuff to make display settings work. And I don't know C.

I was wondering: Where does fakexrandr define what display the primary one is? Or is this just something xrandr guesses?

@phillipberndt
Copy link
Owner

It doesn't define it at all, that's the issue :) To define it you'd have to implement the call mentioned above and return one of the fake outputs.

@yoshegg
Copy link
Author

yoshegg commented May 15, 2018

Damn :( I'll try my best then.

@yoshegg
Copy link
Author

yoshegg commented May 16, 2018

Well I actually did it. 💪

I forked this repo and added a new branch called matrox. It can be found here. I'm not sure if it's worthy to be added to the main repository, but in case someone needs this in the future, here it is.

It's a dirty hack, but it does what I need.

@phillipberndt
Copy link
Owner

Cool, congrats 👍 The first version of fakexrandr was exactly such a hack, with hardcoded splits, so no worries.. let's leave this open, maybe someone will step up to make this configurable as well, and then we can include the change!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants