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

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.

Answers 6

  • 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

  • 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.

  • 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.

  • 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.

  • 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.

Related Questions