How to Prevent Gnome-Shell’s Alt+Tab from Grouping Windows

alt-tabgnome-shell

I love pretty much everything about how Gnome Shell handles app-switching through Alt+Tab. My one gripe with it, though, is how it forces the user to use Alt+` (or Alt+ whatever key above the Tab key for non-US keyboard layouts) to switch between windows of the same app. This is very annoying for me, because now I have to keep in mind if the last window I was using belonged to the same app as the current window or not. Definitely a nuisance for power users who thinks in terms of "windows I'm working with" instead of "applications I'm working on".

I've tried the AlternateTab extension, but it's looks way too ugly for me. Not to mention that in the end all I want is to remap Alt+(key above tab) to Alt+Tab on this application. I guess one option would be to just tweak Gnome-shell. My guess is that I should tinker with the altTab.js file at /usr/share/gnome-shell/js/ui/, but the file is too long and overwhelming for someone like me, who doesn't know JavaScript.

Does anyone know how I can make Gnome Shell stop grouping windows by applications?

Best Answer

For anyone who is using Ubuntu 18 (to give you the same behavior as e.g. on Windows10):

  • go to settings > devices > keyboard
  • look for the keyboard shortcut for "Switch windows"
  • set this to the shortcut Alt+Tab (this will overwrite the old shortcut)

If you now press Alt+Tab you will be able to directly select all open windows without grouping into the different apps.

Related Question