How do I easily switch between windows rather than applications in GNOME Shell?

31,174

Solution 1

Alternatetab is just the Extension you were looking for!

Follow the Managing Extensions instructions here in order to activate it (you should read the text before that section too though). As it is a pre-installed Extensions you will only need to activate it (unless you have removed it, in which case you will need to follow the Installing a new Extension section).

So now upon pressing ALT + TAB and then pressing TAB without letting go of ALT (until you have selected the window you want to switch to - then simply release both keys and it will put that window on top) you should be able to switch between individual windows as opposed to applications!

Alternatetab in action

Solution 2

You can use Alt+` (the key above Tab) to cycle between windows of the same application.

You can even mix Alt+Tab to cycle between application and Alt+` to cycle between windows of the selected application.

There is an exposition of the rationale in this blog post from Canonical's Didier Roche. It's part of a series discussing the development of gnome integration in Ubuntu 17.10.

Solution 3

As someone still quite new to Ubuntu, I found the other answers confusing. After a bit of digging I found a simpler solution, as I also want Alt + Tab to toggle through all the open windows, not just through the open applications.

In Ubuntu 18.04, you just need to go the Keyboard settings as shown here Keyboard settings

Then set Switch windows to Alt + Tab. It will automatically disable Switch applications which is assigned that key combination by default.

No extra software required.

Solution 4

You may use alt+esc combination.

It's not as aesthetically pleasing as alt+tab, it doesn't show the overlay with application icons/windows. But it does the job, it just switches to the next window and so on.

Solution 5

This behavior may also be achieved without a GNOME extension. I have found a similar question at Super User that points out how to set the proper GNOME key bindings.

To do it using gsettings:

$ gsettings set org.gnome.desktop.wm.keybindings switch-windows "['<Alt>Tab']"
$ gsettings set org.gnome.desktop.wm.keybindings switch-windows-backward "['<Shift><Alt>Tab']"
$ gsettings set org.gnome.desktop.wm.keybindings switch-applications "['<Super>Tab']"
$ gsettings set org.gnome.desktop.wm.keybindings switch-applications-backward "['<Shift><Super>Tab']"

Using the code above when you press ALT+TAB you'll switch between windows, while pressing SUPER+TAB will get you to switch applications.


dconf-editor allows the same with a graphical interface.

Share:
31,174

Related videos on Youtube

pomsky
Author by

pomsky

Updated on September 18, 2022

Comments

  • pomsky
    pomsky almost 2 years

    Currently if I hold ALT + TAB and then while still holding down ALT I press TAB I am able to go between applications in a little view and then when I release all the keys that application and all its windows come to the front.
    And this is very useful, but I would like to know if there is a way of switching between individual windows with this keyboard shortcut in the same way rather than grouping windows with an application to switch to?

    I am running Ubuntu GNOME 15.10 with GNOME 3.18.

    • Takkat
      Takkat over 8 years
      Just a note: Unity desktop has this feature by default.
    • Alex Greeneberg
      Alex Greeneberg almost 8 years
      I still can't believe that Gnome broke AltTab.
  • TheWanderer
    TheWanderer over 8 years
    You might want to add that the direct web installer option only works from Firefox. Chrome/Chromium (at least for me) shows a message saying a running copy of GNOME cannot be found.
  • Admin
    Admin over 8 years
    @Zacharee1: Is the GNOME sort of integrations plugin not installed and activated in those browsers then?
  • TheWanderer
    TheWanderer over 8 years
    I'm not sure. I just know that on Chrome, the website can't detect if GNOME is running. I would guess it's because Firefox comes with a lot of Linux distros, and scripts that do that sort of detection tend to work differently in Firefox and Chrome
  • Admin
    Admin over 8 years
    @Zacharee1: The website itself does not do the detection, it is an plug-in installed by default called Gnome Shell Integration, so if that's not installed in Chrome it won't work.
  • TheWanderer
    TheWanderer over 8 years
    Oh, well, yeah it isn't installed in Chrome :p. I was wondering how exactly it was done.
  • Zanna
    Zanna over 6 years
    This works very nicely on MATE. Just mentioning, because it seems the behaviour on GNOME is not as clean. But I get an application-window-only switcher with this combination, exactly as I'd expect
  • Malachi Bazar
    Malachi Bazar over 6 years
    Installing AlternateTab through the Ubuntu Store made it work flawlessly.
  • guettli
    guettli over 5 years
    You wrote "This works very nicely on MATE". What do you mean with "nice"? Do you mean Alt+TAB switches between windows? My usecase: I want to switch between two terminals with Alt+TAB. I don't want a work-around. I want Alt+TAB.
  • Wilson Freitas
    Wilson Freitas over 5 years
    I was using this solution and it was working great until today. It seems like a gnome update screw it. Now alt+tab only displays the windows from the latest application I used alt+`. It is quite strange because I even have alt+` disabled on gsettings. I was avoiding to move to Mint+Cinnamon, but this is the last piece of gnome annoyance I could tolerate. I enjoy gnome shell usability, but it is just too unstable for professional use.
  • Luke
    Luke over 5 years
    not the thing I want but very nice to know alt esc, it's good!
  • Keerthi Kumar P
    Keerthi Kumar P almost 5 years
    The extension is now deprecated. There is a video in the extension page and also this answer here describes a more easier way. askubuntu.com/a/1154780/970836
  • Tgr
    Tgr over 4 years
    There is also no way to abort it (like you can<kbd>alt</kbd>+<kbd>tab</kbd> by pressing <kbd>esc</kbd>), which can get very annoying.
  • pomsky
    pomsky over 4 years
    Yes, it seems there is no way to abort it, but you can also switch in the reverse direction by pressing <Alt><Shift><Esc>.
  • Robert Riedl
    Robert Riedl over 4 years
    This doesn't seem to work on non-Us keyboards...
  • Kiwy
    Kiwy over 3 years
    awfull design choice, quote is all over the place when it comes to international keyboard...