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

implement display_sort_order config option #554

Closed
wants to merge 5 commits into from

Conversation

jneen
Copy link

@jneen jneen commented Jun 1, 2020

Alternate proposal to #551 .

Usage: yabai -m config display_sort_order [none|horizontal|vertical] (default: none)

If set to something other than none, display arrangement indexes will be considered relative to their position, either sorted horizontally or vertically. This also affects the behaviour of the positional selectors next, prev, first, and last, making it ideal for #225 .

@jneen
Copy link
Author

jneen commented Jun 8, 2020

Rebased. It appears some similar functionality has been added in the meanwhile, but I still think it's useful to be able to indicate display numbers relative to their position.

@jneen jneen force-pushed the feature.display-sort-order branch from 4cbe37d to 4a31138 Compare June 9, 2020 02:34
@jneen
Copy link
Author

jneen commented Jun 9, 2020

Rebased and squashed. Additionally, if horizontal or vertical are used, equally positioned monitors will attempt to fall back to the other axis. That way, situations like:

[  A  ]
[  B  ] [ C ]

will correctly sort the monitors as [A, B, C].

@jneen jneen force-pushed the feature.display-sort-order branch from d849682 to 3597b52 Compare September 13, 2020 16:46
@jneen
Copy link
Author

jneen commented Sep 13, 2020

I've gone ahead and rebased this again.

@jneen jneen force-pushed the feature.display-sort-order branch from 3597b52 to ebf072d Compare April 27, 2021 17:50
@jneen jneen force-pushed the feature.display-sort-order branch from ebf072d to 408abf3 Compare May 3, 2021 22:03
@jneen
Copy link
Author

jneen commented May 3, 2021

rebased.

@koekeishiya koekeishiya force-pushed the master branch 2 times, most recently from 3a0e1d8 to 656f8c8 Compare December 30, 2023 22:02
@koekeishiya
Copy link
Owner

koekeishiya commented Mar 12, 2024

Implemented on master e02addf.

display_arrangement_order [default|vertical|horizontal]

Specify how displays are ordered (determined by center point).
default: Native macOS ordering.
vertical: Order by y-coordinate (followed by x-coordinate when equal).
horizontal: Order by x-coordinate (followed by y-coordinate when equal).

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

Successfully merging this pull request may close these issues.

2 participants