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

[Feature Request] Ability to cycle between multiple default profiles #400

Open
9las opened this issue Nov 26, 2024 · 0 comments
Open

[Feature Request] Ability to cycle between multiple default profiles #400

9las opened this issue Nov 26, 2024 · 0 comments

Comments

@9las
Copy link

9las commented Nov 26, 2024

I would like to request a feature enhancement for autorandr that enables users to cycle through multiple default profiles when no matching profile is detected.

Currently, autorandr requires users to set up profiles for each specific display configuration. This setup allows autorandr to detect the hardware configuration and cycle between the corresponding profiles. However, this can be cumbersome, especially for users who frequently encounter unrecognized hardware setups. Often, I find it more convenient to cycle through a predefined set of profiles that remain consistent regardless of the specific hardware configuration. Adding the ability to cycle between multiple default profiles would address this need.

The proposed feature would allow users to define and rotate through a set of fallback "default profiles." These profiles would only activate when no regular profile matches the current hardware setup. If a matching regular profile is detected, the fallback profiles would be excluded from the rotation, maintaining the current behavior for normal profiles. Furthermore, it should be possible to configure these default profiles with virtual configurations so that they will work no matter e.g. the resolution of the connected monitors.

While the current wildcard EDID matching offers some flexibility for creating general profiles, it comes with significant limitations:

  1. Wildcard EDID matching only allows generalization based on EDIDs, not on connected output names.
  2. Profiles using wildcard EDID matching cannot function as fallback profiles—they are included in the regular profile rotation, which may not align with user preferences.
  3. The static nature of configuration files makes it difficult to create general profiles suitable for monitors with differing resolutions or specifications.

Implementation Suggestions

The simplest way to implement the feature would probably be to allow the --default option to take multiple profile names, say deafult1, default2, default3 and then symlink deafult1, default2, default3 to different virtual configurations.

Alternatively, the feature could be implemented by:

  1. Extending wildcard matching to support connected output names (e.g., a single * in the setup file matches any configuration).
  2. Add metadata in the setup file to indicate that a profile functions as a fallback.
  3. Allow config files to point at one of the virtual profiles.
@9las 9las changed the title [REQUEST] Ability to cycle between multiple default profiles [Feature Request] Ability to cycle between multiple default profiles Nov 28, 2024
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

No branches or pull requests

1 participant