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 define per-monitor layouts. #107

Open
zastrixarundell opened this issue Oct 9, 2024 · 0 comments
Open

[Feature request] Ability to define per-monitor layouts. #107

zastrixarundell opened this issue Oct 9, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@zastrixarundell
Copy link

zastrixarundell commented Oct 9, 2024

Is your feature request related to a problem? Please describe.

The ability to define custom layouts which only show for specific displays. Essentially a layout selection filter per display.

Let's say you have 2 monitors. One is horizontal and one is vertical. You would only want the horizontal layouts shown as an option for the horizontal display and not the vertical layouts. The reverse also applies.

From what I understood, this is the original point of: #4.

Describe the solution you'd like.

Set a display or monitor field in the config during layout definition. Ideally the display connection name can be used rather than an index.

Example for the config would be:

[
  {
    "name": "Android Debugging",
    "padding": 0,
    "display": "HDMI-A-2", # This part specifically
    "zones": [
      {
        "x": 0,
        "y": 0,
        "height": 100,
        "width": 23.646
      },
      {
        "x": 23.646,
        "y": 0,
        "height": 100,
        "width": 76.354
      }
    ]
  }
]

This is with the data from:

$ xrandr --listmonitors
Monitors: 3
 0: +*HDMI-A-2 1920/598x1080/336+1920+0  HDMI-A-2
 1: +DP-2 1920/598x1080/336+0+0  DP-2
 2: +HDMI-A-1 1920/598x1080/336+3840+0  HDMI-A-1

This would then only allow the android debugging layout on the HDMI-A-2 display and not other displays.

If the monitor/display field is not set, then the default behaviour can be used where it'll display. This way we can have universal layouts but also layouts per monitor.

Describe alternatives you've considered.

Instead of using (HDMI-A-2, DP-2, HDMI-A-1), (0, 1, 2) can be used.

@gerritdevriese gerritdevriese added the help wanted Extra attention is needed label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants