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

Pin workspaces to specific monitors #351

Open
cytrinox opened this issue Nov 25, 2020 · 4 comments
Open

Pin workspaces to specific monitors #351

cytrinox opened this issue Nov 25, 2020 · 4 comments
Labels
enhancement Adds a new feature or extends scope multi-monitors Issue specific to multi-monitor setup

Comments

@cytrinox
Copy link

I have a setup of 3 monitors and need a fixed preallocated amount of workspaces (12).
Workspace 1-10 should be on the center monitor (marked as primary in gnome settings). Workspace 11 on the left, Workspace 12 on the right. I've discovered #280 but every time I move one workspace to the correct monitor, another workspace switches in.

Is it possible to pin workspaces to monitors? For example, after fresh reboot Workspace 1 is on the right monitor (which is wrong as the primary monitor is located center.

The gnome setting "span workspace over all monitors" to false would solve my problem but this mode is known to be incompatible with paperwm.

@hedning
Copy link
Member

hedning commented Nov 25, 2020

Yeah, sorting out workspace monitor mapping would be really nice.

Unfortunately gnome shell doesn't seem to provide reliable information about active monitors, we're basically stuck with the monitor's geometry (pixel size, and position) scale and the overall layout. In other words there's for instance no real way to tell two monitors with the same geometry and scale apart.

Now, it's possible to build some hacky heuristics to get things to work a lot better than the current situation (there's also some monitor information in ~/.config/monitors.xml which could come in handy). @olejorgenb and I don't really use a multi monitor setup that much though, so the motivation to work on this isn't great.

Thinking about this though, I think there might be some easy wins by asking about monitor neighbours. So in your situation making a rule which says this workspaces should be on the left of primary, and this on the right could be fairly easy.

A last note on #280, that sounds like a possible bug, the intention is something like this:

  • You're on eg. the primary monitor and want press Alt+Super+Right, to move the current space to the right monitor
  • The current space is moved to the right monitor, and the space on the right monitor is moved to the primary monitor. Effectively swapping the spaces.

@hedning hedning added enhancement Adds a new feature or extends scope multi-monitors Issue specific to multi-monitor setup labels Jan 16, 2021
@jtaala
Copy link
Collaborator

jtaala commented Aug 28, 2023

Hey @hedning, I realise this is an older comment, but just a heads-up that #557 added a new async dbus connector client for DisplayConfig.

This adds unique connector id's like eDP-1, HDMI-1, to monitor objects (like in Main.layoutManager.monitors).

Essentially means we can now tell two (or more) monitors apart. It's used/needed in improving monitor layout restoring etc.

@shackra
Copy link

shackra commented Jul 18, 2024

#556 was merged, so this feature is viable to implement, rigt?

@jtaala
Copy link
Collaborator

jtaala commented Jul 18, 2024

Well, if the main issue was identifying monitors, then it should be viable for someone to work on this.

I don't use multiple monitors so would be low on my priority list - but of course would accept a PR if you or others want to work on this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adds a new feature or extends scope multi-monitors Issue specific to multi-monitor setup
Projects
None yet
Development

No branches or pull requests

4 participants