179

Dual monitor setup on Ubuntu 18.04; when I hit activities only the left monitor switches workspaces while the right monitor just keeps whatever is on its screen. Is there a way to make the workspace span both monitors so that when I switch from one workspace to another both monitors switch?

Zanna
  • 69,223
  • 56
  • 216
  • 327
Alex
  • 1,935
  • 2
  • 9
  • 7
  • Does this work for both gnome and unity? – Ross Feb 06 '19 at 19:09
  • 2
    Does this answer your question? [How can I make gnome-shell treat both monitors in the same way?](https://askubuntu.com/questions/68778/how-can-i-make-gnome-shell-treat-both-monitors-in-the-same-way) – dcorking Oct 06 '20 at 05:25

6 Answers6

227

Had the same problem. Turned out it was super easy to fix.

Install the GNOME Tweaks app. Go to Workspaces and set Display handling to Workspaces span displays. Done!

Zanna
  • 69,223
  • 56
  • 216
  • 327
ehannes
  • 2,474
  • 1
  • 11
  • 7
  • 5
    see also https://askubuntu.com/a/1125322/16985 for additional fixes, e.g. Activities still showing windows from all workspaces on secondary display – törzsmókus Mar 13 '19 at 14:04
  • 3
    I had a different problem that this solution fixed. When switching from a single laptop display to a single external display, all the windows were merged into the top workspace, emptying the other workspace. Makes the worksspaces concept useless. Thanks. – AlikElzin-kilaka Jun 26 '19 at 12:22
  • This fixes workspaces but the "window key" dash on additional monitors shows all apps across all workspaces for Ubuntu 18. In Fedora 31, this works. – wilsotc Dec 29 '19 at 15:01
  • Did this but it had no effect. Changing workspace has effect on primary monitor only – frepie Apr 24 '20 at 16:48
  • 1
    I searched for the reverse to keep a zoom session on 2nd monitor while switching workspaces in sharing my screen. Indeed gnome-tweaks: switch "workspaces span displays" to "workspaces on primary display only". Thanks! – Rob Rutten Mar 01 '21 at 10:56
  • 1
    PSA: "Workspaces" is not available anymore in the Tweaks app in Ubuntu 22.04, but the solution below using gsettings still works. – jpb Aug 23 '22 at 12:22
129

You can change this behaviour by executing:

gsettings set org.gnome.mutter workspaces-only-on-primary false
Zanna
  • 69,223
  • 56
  • 216
  • 327
dkurzaj
  • 1,499
  • 1
  • 9
  • 7
20

You can install gnome-tweak-tool via sudo apt install gnome-tweak-tool.

Then go to Workspaces > Display Handling > And choose Workspaces span displays

Zanna
  • 69,223
  • 56
  • 216
  • 327
Ini
  • 420
  • 5
  • 8
13

In Ubuntu 22.04:

Settings > Multitasking > Multi-Monitor > Workspaces on all displays
batbrain9392
  • 231
  • 2
  • 3
12

Install dconf-editor:

sudo apt install dconf-editor

Disable the following settings:

dconf write /org/gnome/mutter/workspaces-only-on-primary false
dconf write /org/gnome/shell/overrides/workspaces-only-on-primary false
BeastOfCaerbannog
  • 12,964
  • 10
  • 49
  • 77
  • @leoschet I suggest you reset dconf settings first. (dconf reset -f /) – Shantanu Saha Dec 18 '18 at 07:43
  • 2
    I don't think you need to install `dconf-editor` (it's for the **GUI application**) first in order to run the `dconf write ...` commands. Also it's preferable to use `gsettings` instead of the `dconf` commands (see [here](https://developer.gnome.org/dconf/unstable/dconf-tool.html)). – pomsky Nov 12 '19 at 10:55
9

I recommend to you to use the Multi Monitos Add-on extension, available in GNOME Extensions. It is pretty easy to use, and it also gives you the ability to add a panel in the second monitor.

To get up and running all the GNOME extensions config directly in your browser, you only need the following:

  1. Install the gnome-shell-extensions package:

    sudo apt install gnome-shell-extensions
    
  2. Install the host connector:

    sudo apt install chrome-gnome-shell
    
  3. Install the GNOME Shell integration extension (Chrome) or add-on (Firefox).

  4. Find and install the Multi Monitos Add-on extension.

BeastOfCaerbannog
  • 12,964
  • 10
  • 49
  • 77
Rodrigo García
  • 221
  • 2
  • 5