181

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
  • 70,465
Alex
  • 1,955

6 Answers6

229

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
  • 70,465
ehannes
  • 2,494
  • 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
  • Does the workspace overview/thumbnail show what's on the secondary display? On my end it does not. Any suggestiongs? – Johan Dec 01 '23 at 10:12
133

You can change this behaviour by executing:

gsettings set org.gnome.mutter workspaces-only-on-primary false
Zanna
  • 70,465
dkurzaj
  • 1,539
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
  • 70,465
Ini
  • 430
18

In Ubuntu 22.04:

Settings > Multitasking > Multi-Monitor > Workspaces on all displays
13

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
  • @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). – pomsky Nov 12 '19 at 10:55
10

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.