xlayoutdisplay icon indicating copy to clipboard operation
xlayoutdisplay copied to clipboard

Pre-set primary based on device type possible?

Open NothingWorksToday opened this issue 1 year ago • 2 comments

QUESTION

First and foremost many thanks for this good-working piece of software! I'm running it on a laptop to which several monitors get connected. xlayoutdisplay together with the udev-rule provided successfully scans new monitors and sets them up accordingly.

What I would like is that the eDP is always set as secondary (that means, the connected monitor always is the primary monitor). However, xlayoutdisplay per default always uses eDP as primary. Can this be changed? Of course I can re-run xlayoutdisplay with the modified primary monitor after initial config is done, but that defeats the purpose of the auto-detection :)

Thanks for your answer

NothingWorksToday avatar Sep 25 '22 09:09 NothingWorksToday

Current:

  • we can set the order in .xlayoutdisplay
  • we can specify one primary in .xlayoutdisplay

order should suit your use case, however primary is a problem.

Possible solution: specify multiple primaries, picking the first available one, something like: xlayoutdisplays -p HDMI-0 -p DP-4 -p eDP-1

alex-courtis avatar Sep 26 '22 00:09 alex-courtis

Alternative: have the rule pass the primary to the xlayoutdisplay call, however that could be difficult / impossible.

alex-courtis avatar Sep 26 '22 00:09 alex-courtis