How to Separate Windows in “Alt-Tab” in Ubuntu

If you've recently made the switch from Windows 10 to Ubuntu, you may have noticed that the Alt+Tab shortcut groups windows of similar applications together. This means that if you have multiple windows of the same web browser open, you can't easily switch between them using Alt+Tab. However, if you're like me and have years of muscle memory using Alt+Tab, you'll be happy to know that there is a way to separate windows of the same application in the tab switcher.

Remapping the Keyboard Shortcut

The setup is simple and involves remapping a particular keyboard shortcut. There are two ways to do this: using the GUI or the command line.

GUI

To remap the keyboard shortcut using the GUI, follow these steps:

  1. Open the Settings menu and navigate to the Keyboard shortcuts tab.
  2. Alternatively, you can simply search for “Keyboard Shortcuts” in the GNOME launcher.
  3. Under the Navigation tab, you'll find a shortcut called “Switch Windows.”
  4. Click on the shortcut and set the hotkey to “Alt+Tab.”
  5. Once you've done this, Alt+Tab will now switch between windows rather than applications. You'll also see the window name instead of the application name in the tab switcher.

Command Line

If you prefer using the command line, you can remap the keyboard shortcut with a single-line command. Here's how:

  1. Open the terminal and run the following command:
    gsettings set org.gnome.desktop.wm.keybindings switch-windows "['<Alt>Tab']"
  2. This command will enable the window switch shortcut and map it to the “Alt+Tab” hotkey. It will automatically disable the application switch hotkey.
  3. To revert back to the previous configuration, run the following command:
    gsettings set org.gnome.desktop.wm.keybindings switch-windows []
    gsettings set org.gnome.desktop.wm.keybindings switch-applications "['<Alt>Tab']"
  4. If the changes don't take effect, restart your system.

That's it! By remapping the keyboard shortcut, you can now separate windows of the same application in the Alt+Tab tab switcher. This makes it easier to switch between different windows and improves your productivity on Ubuntu.

Also Read: How to Uninstall An Application In Ubuntu