Force Alt + Tab switcher to display applications from active workspace [duplicate]

Solution 1:

For 12.04
By default the switcher in 12.04 only shows the applications in the active workspace.

For 11.10
The method described below does not force the Alt + Tab switcher to display applications from the active workspace but instead, display those applications next to each other. This would mean that you can switch to it relatively easily compared to switching between applications in all the workspaces.

You can change the behavior of the Alt + Tab switcher. There is an option in compizconfig-settings-manager Install compizconfig-settings-manager that lets you group the applications together from the active workspace.

To install CCSM, run the following command in a terminal:

sudo apt-get install compizconfig-settings-manager
  • What are some of the issues with CCSM and why would I want to avoid it?

To enable the setting, click on Ubuntu Unity plugin and select Switcher tab and tick Bias alt-tab sorting to prefer windows on the current viewport.

Unity plugin

Switcher option

This will ensure that the applications from the same workspace will get grouped together in the window switcher.

Solution 2:

This is actually fixed in 12.04: "In 12.04, by default Alt-tab will only switch between windows on the currently visible workspace(s)."

See https://bugs.launchpad.net/unity/+bug/863399 for details.