Prevent gnome from changing the workspace on focus when using two or multiple monitors

3

1

Currently I'm using two monitors, one for exclusively viewing and editing code, another for doing everything else. I have hotkeys set up to focus on either sublime, or firefox or the terminal like this:

C-M-1 executes wmctrl -a firefox \

C-M-2 executes wmctrl -a sublime -- via the default gnome-shortcuts.

C-M-3 executes wmctrl -a konsole /

The problem is, when I change the focus to sublime, my workspace on the other monitor automatically switches to the workspace sublime sent to the extended display from (usually, my terminal workspace), effectively forcing me to change where firefox is positioned. Is there a quick fix for this?

Changing the focus by clicking into sublime does not change which workspace I'm at on the primary monitor.

Adam Hunyadi

Posted 2017-06-09T08:20:53.797

Reputation: 217

Answers

0

I'm not certain I've understood what you want but from what I gather, you need Firefox to stay on the extended monitor, and change workspace on the base monitor to go from Sublime to Terminal (or more).

That's fairly straightforward as GNOME's default configuration should not create workspaces on the secondary monitor. In GNOME Tweak Tool, go to workspaces and set Workspaces only on primary display to On, that should take care of the problem and keep Firefox on the secondary display even when switching workspace on the main display.

Ginnungagap

Posted 2017-06-09T08:20:53.797

Reputation: 121

Well, I only have one workspace on the extended display, but when I focus to the application on the extended display using wmctrl changes my workspace on the primary display. – Adam Hunyadi – 2017-06-18T13:29:48.770