-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add wlrlui -m to automatically match profiles #9
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get why it's not prof_uids == current_uids instead ...
I love the idea! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost ready for merge, most important clarification is about the "main" condition of the code
Any suggestion here? something like what follows? [monitors]
hotplug_command = "wlrlui -m" |
Implemented the changes as requested.
Yes that would work! |
Great! I'm ok to add this to pyprland, if I forget you can open a feature request (even one-liner linking here, it's just a reminder) Thank you for the contribution! |
Theoretically that should work already (with |
I think I removed it at some point because it was not so straightforward in the end... |
Hi,
This PR adds an
-m
option towlrlui
to automatically match profiles.Basically, it will iterate over all saved profiles (sorted alphabetically), and it will apply the first profile where all currently connected monitors
uid
match.This can also be used together with any script that listens for monitor changes, in order to apply the correct profile every time a monitor is connected/disconnected.
For instance, using pyprland monitors, this should work, despite a little cumbersome: