alex-courtis / way-displays

way-displays: Auto Manage Your Wayland Displays
MIT License
241 stars 12 forks source link

#60 explicitly order displays: exact match, regex match, partial match #68

Closed alex-courtis closed 1 year ago

alex-courtis commented 1 year ago

ORDER is now applied:

  1. Exact match
  2. Regex match
  3. Partial match
  4. Unspecified, in discovered order

@matthewwardrop I would gratefully appreciate your review of order_heads and new test order_heads__order

TODO #46

matthewwardrop commented 1 year ago

And re #46; that can now be configured easily using:

ORDER:
  -"!.*"
  - eDP-1

I wonder if it needs special treatment after all?

alex-courtis commented 1 year ago

And re #46; that can now be configured easily using:

ORDER:
  -"!.*"
  - eDP-1

I wonder if it needs special treatment after all?

Wow! That's an excellent idea... that should work now... adding a test.

alex-courtis commented 1 year ago

And re #46; that can now be configured easily using:

ORDER:
  -"!.*"
  - eDP-1

I wonder if it needs special treatment after all?

Added some instructions: https://github.com/alex-courtis/way-displays/pull/68/files#diff-a97f75020345697a0dc0ab9adb4d6cc5de41f8b057d3601eafe07a4a812123d9R68 that I'd be grateful for review.

There are a couple of caveats, however they should be acceptable.

Another option might be to add a marker to order like:

ORDER:
  - eDP-1
  - !^DP-[0-9]$
  - eDP-2
  - ##remainder##
  - DP-2

however that might be overkill.

matthewwardrop commented 1 year ago

Aye... I think adding in additional markers would be overkill for something like this.

And the suggested files look good! Thanks again for being receptive to these changes!

alex-courtis commented 1 year ago

Aye... I think adding in additional markers would be overkill for something like this.

And the suggested files look good! Thanks again for being receptive to these changes!

Thank you for pushing me into action; this project has not been getting the attention it needs.

Always happy for more contributions :)