PaperWM icon indicating copy to clipboard operation
PaperWM copied to clipboard

Switch to already visible workpace

Open Rutherther opened this issue 2 years ago • 8 comments

Is your feature request related to a problem? Please describe. When I switch to workspace that is already on my screen, but on a different monitor, it does nothing. I am using gnome keybinding to switch to different workspace. When I switch to workspace that is not currently visible, it correctly brings me to the workspace on the monitor I have focus on.

Describe the solution you'd like I would love to have the focus switched to the monitor with the workspace when workspace is visible on different monitor. Alternatively, switching workspace would work as well.

Describe alternatives you've considered As gnome doesn't have independent workspaces (so it's not expected to have more workspaces visible) out of the box, I didn't have much luck finding any extension that would do this.

Rutherther avatar Nov 18 '23 19:11 Rutherther

Hm, now I found out that when I try to switch to workspace with super + click on workspace, it focuses the workspace if it is already visible :thinking:. But for the keybinding with switch-to-workspace it doesn't.

Rutherther avatar Nov 18 '23 19:11 Rutherther

I would love to have the focus switched to the monitor with the workspace when workspace is visible on different monitor. Alternatively, switching workspace would work as well.

Use the Switch to the xxx monitor keybinds?

image

(Note I'm using custom keybinds that I like, but check the PaperWM settings for keybinds on your machine).

jtaala avatar Nov 19 '23 06:11 jtaala

I have also customized the keybindings a lot, including switch to monitor keybindings. I am using these. But I personally don't see it as a viable alternative to the problem I am having. That is probably just because of a different workflow from yours.

I am actually used to something different than I proposed as well. I got used to a feature in xmonad that when you call switch to workspace, and the workspace is already visible on a different monitor, it will get swapped with the current monitor's workspace.

Rutherther avatar Nov 19 '23 08:11 Rutherther

When I switch to workspace that is already on my screen, but on a different monitor, it does nothing. I am using gnome keybinding to switch to different workspace. When I switch to workspace that is not currently visible, it correctly brings me to the workspace on the monitor I have focus on.

I'm not sure I'm following here - you're using Gnome keybinds to switch focus on a workspace (e.g. workspace 1, 2, etc.)?

jtaala avatar Nov 19 '23 09:11 jtaala

I am actually used to something different than I proposed as well. I got used to a feature in xmonad that when you call switch to workspace, and the workspace is already visible on a different monitor, it will get swapped with the current monitor's workspace.

Okay, it sounds like you want to Swap workspace with monitor on right (etc.) keybinds to action when you press your shortcut and the space on currently on another monitor?

jtaala avatar Nov 19 '23 09:11 jtaala

I'm not sure I'm following here - you're using Gnome keybinds to switch focus on a workspace (e.g. workspace 1, 2, etc.)?

Yes exactly

Rutherther avatar Nov 19 '23 09:11 Rutherther

Okay, it sounds like you want to Swap workspace with monitor on right (etc.) keybinds to action when you press your shortcut and the space on currently on another monitor?

That would be perfect, yes. But only focusing the workspace (switching focus to that monitor) would work as well.

Rutherther avatar Nov 19 '23 09:11 Rutherther

@jtaala Imagine a situation where I have monitors A, B. I put workspace 1 on monitor A, then switch to workspace 2. I then go to monitor B, focus some other workspace. After some time, I decide to switch to workspace 1 while still being focused on monitor B. I do this via gnome keybinding "switch to workspace X(number)". This puts workspace 1 on monitor A. But it doesn't move my mouse cursor, leaving monitor A/workspace 1 unfocused, even though I executed a keybinding for switching to it.

I think this could be the same issue as with visible workspaces I try to switch to.

I am not sure what behavior of PaperWM should be with gnome keybindings, but isn't this a bug? I would really expect to switch focus to the workspace, not just make it visible.

Rutherther avatar Nov 25 '23 09:11 Rutherther