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
  • 17,371
chris.ritsen
  • 1,313

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
  • 78,496
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
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,451
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.