-
Notifications
You must be signed in to change notification settings - Fork 22
[FEAT] Add disable property to monitors #159
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
Comments
How do you see the feature ? Would something such as the following work for you? [monitors]
disabled = ['HDMI-A-1'] |
Sorry, after double checking I figured out that the |
Hm... I use https://github.com/fdev31/wlr-layout-ui?tab=readme-ov-file#magic-layout for such scenario, but maybe it's more limited (I don't know the tools you are mentioning). It calls But if you can think of a syntax that would allow such things in the monitors plugin it's probably doable. |
With shikane (kanshi is similar but less powerful) you can setup the monitors using any tool and then record the current setup and make it a rule (by matching model, connector ...) and it checks the rules every time there is a wayland notification. But in the way hyprland works, the part of recording does not work well because it does not allow too apps to control the monitors at the same time. That's why I was looking into an alternative doing the same but using hyprland native messages instead. Let me have a look at wlr-layout thanks. |
Wlr-layout doesn't have any complex matching rules, it just takes the currently connected monitors to guess which profile to use... It only matches the connected ports, not the models, but the current code for the matching is relatively simple and more (complex) options can be added. |
I think models and ports is enough, maybe models should allow taking wildcards (so one can define profiles that catch any monitor as fallback). I think the design of shikane could be a good example. |
I'm not sure to understand how it selects which profile to enable, if every output has a match and none is left over? Then it's very close to wlr-layout-ui if I add support for matching the monitor names instead of the ports. There would be 3 options (set for each monitor): port, name or both. I am not sure the regex thing is useful... but maybe I can also allow it. I see it could always use the port, and optionally the name... and the most specific profile wins. |
Is your feature request related to a problem? Please describe.
monitors
plugin allow to set the position of the monitors, but sometimes is useful to disable them (like in the case of connecting the laptop to a big screen while I don't want to see the laptop).Describe the solution you'd like
Expose the disable flag of the monitors
Describe alternatives you've considered
I use shikane but the way hyprland makes it not to work sometimes, given that pyprland uses hyprland directly instead of wayland protocols it should work better.
The text was updated successfully, but these errors were encountered: