Skip to content

Add support for "main" and "secondary" as nicknames for addressing a display using CLI #3622

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

Closed
thalesmello opened this issue Nov 13, 2024 · 3 comments
Assignees
Labels
done All tasks are completed enhancement New feature or request integration Command-line interface released Released
Milestone

Comments

@thalesmello
Copy link

thalesmello commented Nov 13, 2024

Borrowing this idea from Aerospace, where you can use "main" to target the main display, and "secondary" to refer to the other display when there are only two of them connected.

Likewise, it can be sometimes confusing to find exactly the names of displays when you want to quickly write a one-off command, as I do all the time when I plug in my laptop into different displays. It would be convenient to use "main" and "secondary" as targets.

For the time being, I'm making do with the following command line to move the secondary display to the bottom of my main display:

betterdisplaycli perform "--originalName=$(osascript -e 'tell application "System Events" to display name of desktop 2')" "--targetOriginalName=$(osascript -e 'tell application "System Events" to display name of desktop 1')" --moveTo=bottom
@waydabber waydabber added enhancement New feature or request invalid and removed invalid labels Nov 13, 2024
@waydabber waydabber transferred this issue from waydabber/betterdisplaycli Nov 13, 2024
@waydabber waydabber added the integration Command-line interface label Nov 13, 2024
@waydabber
Copy link
Owner

@thalesmello - indeed, this would be an useful addition. Will implement.

@waydabber waydabber changed the title Add support for "main" and "secondary" as nicknames for display Add support for "main" and "secondary" as nicknames for addressing a display using CLI Nov 14, 2024
@waydabber waydabber added the in progress Implementing label Nov 27, 2024
@waydabber waydabber added this to the v3.2.2 milestone Nov 28, 2024
@waydabber
Copy link
Owner

Added --displayWithMainStatus and --displayWithNonMainStatus identification features. The names are a bit awkward but it is to keep the --displayWith... style introduced for Mouse and Focus.

@waydabber waydabber added done All tasks are completed unreleased Still baking in the oven internal pre-release Enable internal pre-releases under Settings/Applications/Updates and removed in progress Implementing unreleased Still baking in the oven labels Dec 2, 2024
@thalesmello
Copy link
Author

thalesmello commented Dec 2, 2024 via email

@waydabber waydabber self-assigned this Dec 10, 2024
@waydabber waydabber added released Released and removed internal pre-release Enable internal pre-releases under Settings/Applications/Updates labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done All tasks are completed enhancement New feature or request integration Command-line interface released Released
Projects
None yet
Development

No branches or pull requests

2 participants