121

Enabling Bias alt-tab sorting to prefer windows on the current viewport as described here made no difference. How can I get back the exact same behavior as 11.04, so that alt-tab only switches between windows on the current workspace?

Simply disabling the alt-tab and shift-alt-tab keybindings on the unity switcher seems to have helped, but it still switches workspaces on me sometimes. For example, if I give a terminal window focus then press alt-tab, it switches to another terminal window on any workspace before trying to switch on the same workspace. Also, the Unity switcher still shows up when I alt-tab then hold alt even though I removed its alt-tab keybinding.

Pablo Bianchi
  • 15,657
chris.ritsen
  • 1,313
  • 2
    You'll be glad to hear that this, and these types of issues will be in focus for 12.04. Mark Shuttleworth posted an email about it a few hours ago, regarding exactly this case. Should see great improvements. :) – Jo-Erlend Schinstad Oct 20 '11 at 21:34
  • I hope someone come out with a simple check-box in in appearearence, behaviour, setting, or at least some plugin like this: https://extensions.gnome.org/extension/15/alternatetab/ Any idea where I should file this feature request??? – opensas May 25 '13 at 01:18
  • I don't like to install things for little configurations, in this question there are some way to switch that makes this way of switching comfortable https://askubuntu.com/questions/123977/how-to-ungroup-windows-on-task-switcher – titusfx Aug 16 '17 at 07:03

5 Answers5

111

You can revert back to the older style of window switcher by enabling the Static Application Switcher plugin in CompizConfig Settings Manager:

Steps:

  1. CompizConfig Manager is gotten through sudo apt-get install compizconfig-settings-manager (thanks to @donbright)

  2. sudo apt-get install compiz-plugins to get the static application switcher to show up. (thanks to @Milimetric)

  3. CompizConfig Manager is started by typing ccsm in terminal (thanks to @donbright)

  4. Disable the keyboard shortcuts for Unity's switcher by unchecking CompizConfig Settings Manager ▸ Desktop ▸ Ubuntu Unity Plugin ▸ Switcher ▸ Key to start the switcher ▸ Enabled and Key to start the switcher in reverse ▸ Enabled

  5. Enable the Static Application Switcher by checking CompizConfig Settings Manager ▸ Window Management ▸ Static Application Switcher ▸ Enable Static Application Switcher

ændrük
  • 76,794
  • 7
    +1: Nice and concise. But there are also warnings about key binding conflicts, and the choices (in Precise) were very confusing. So a bit of advice about that would help. E.g. what is the difference between "set Prev window (All windows) anyway" and "disable Key to start the switcher in reverse for all viewports in the Ubuntu Unity Plugin plugin?" – nealmcb Apr 30 '12 at 23:58
  • 17
    Really? There's no way at all to disable grouping in Unity's Switcher other than completely disable the switcher itself? – MestreLion Nov 24 '12 at 10:36
  • 15
    You guys forgot one detail: you have to sudo apt-get install compiz-plugins to get the static application switcher to show up. – Milimetric May 21 '13 at 14:17
  • 1
    Ping for the question in nealmcb's comment - I'm also puzzled. – Jonathan Hartley Mar 20 '14 at 16:10
  • 1
    The "Warning" post suggests that the goal as of 12/04 was to reduce the need for CCSM by merging in support for the things folks really want. Given the massive popularity of this (and my continuing state of massive frustration with how the default switcher in trusty works), is any progress being made on at least making a less-scary and better-supported tweak available for switching to the static application switcher? – nealmcb Jan 13 '15 at 22:02
  • 1
    Somewhat more up-to-date descriptions of what to click on for Trusty are at: [SOLVED] Configure the Ubuntu alt-tab application switcher http://ubuntuforums.org/showthread.php?t=2211863 – nealmcb Jan 14 '15 at 00:20
  • Probably easier to switch steps 4 & 5, since disabling the switcher will prevent the reader to switch between this tutorial and the configuration window using Alt-Tab, and enabling the static switcher will propose to solve conflicts by disabling shortcuts of the Unity switcher anyway (at least on recent versions). – Skippy le Grand Gourou Mar 28 '16 at 12:55
32

You should install CompizConfig Settings Manager. From there you can find the Unity plugin

enter image description here

and disable the switcher, by clicking on each of the key bindings and unchecking 'Enabled'

enter image description here

Then you can enable one of the other window-switcher plugins under Window Management.

ccsm

2

The easy way to do this without changing the switcher is to check Bias alt-tab to prefer windows on the current viewport. This is the second option in the "switcher" tab in the Unity Plugin.

Lucas
  • 29
  • 1
    You may want to edit this answer so users know how to access the Unity Plugin settings (some of the other answers here explain it, but you probably want your answer to be sufficient, even without reference to them). I'd do the edit but there are different ways to explain this and I don't know what you'd prefer. – Eliah Kagan May 30 '12 at 15:56
2

Use the Static Application Switcher (configured using CompizConfig/CCSM)

Warning: What are some of the issues with CCSM and why would I want to avoid it?

Save work and close programs before using CompizConfig.

Consider printing out the Display Manager Restart section at the end of this post. Hopefully you won't need it, but if you do, it will be because your screen is temporarily useless.

Install Software

Install Compiz Config (thanks to @donbright):

sudo apt-get install compizconfig-settings-manager

Install the Static Application Switcher (thanks to @Milimetric):

sudo apt-get install compiz-plugins

Configuration

  1. Start CompizConfig Manager by typing ccsm in terminal (thanks to @donbright) or find it in the Dash.

  2. In CompizConfig Settings Manager, navigate to Desktop ▸ Ubuntu Unity Plugin ▸ Switcher Disable ALL the keyboard shortcuts. It should look like this on Ubuntu 15.04 when you're done:

Disable all keyboard shortcuts in the Unity Plugin

  1. Click "Back" to go back to the CompizConfig main page.

  2. Enable the Static Application Switcher by checking Window Management ▸ Static Application Switcher ▸ Enable Static Application Switcher. Things may flicker for a few seconds. If you get warnings, don't ignore them; go back and fix your mistakes. Success looks like this on Ubuntu 15.04:

Enable Static Application Switcher

That's it!

Display Manager Restart (in case of trouble)

Hopefully you won't need this, but it is probably less likely to cause data loss than pulling the power cord. Think of it as rebooting just your display manager instead of the whole system.

# Switch to a terminal session (leaving X-Windows running)
Ctrl-Alt-F1

# (you may have to log in)

# Stop your X-Windows session:
sudo service lightdm stop

# Start a new X-Windows session:
sudo service lightdm start

# Go to the current X-Windows session:
Ctrl-Alt-F7

Thanks!

This started out as @ændrük's answer, but I edited it enough times to make it my own.

GlenPeterson
  • 1,421
0

To make task switcher only display windows in current workspace run this command from terminal (CTRL+ALT+T):

dconf write /org/gnome/shell/app-switcher/current-workspace-only 'true'

To revert back to switching between windows on all workspaces:

dconf write /org/gnome/shell/app-switcher/current-workspace-only 'false'

This is confirmed working in Ubuntu 17.10.