Make alt tab switch between all windows in Ubuntu Unity

‹ Installing jpegtran in Ubuntu 10.10 (a.k.a. Oneiric Ocelot) | Reduce the number of threads Boxee / XBMC / Kodi uses for thumbnailing ›

Upgrading from Ubuntu 11.04 "Natty Narwhal" to Ubuntu 11.10 "Oneiric Ocelot" installs Ubuntu's Unity, which changes the configuration of the window switcher that is usually bound to Alt-Tab. Instead of switching between all windows, it now switches between applications.

These are instructions on how to revert the behavior back:

In gconf-editor:

  1. Disable the Super (Windows) key:
    gconftool -s "/apps/compiz-1/plugins/unityshell/screen0/options/show_launcher" --type string ""
    sudo apt-get install dconf-tool
    dconf write /com/canonical/unity-2d/launcher/super-key-enable false
  2. Disable the unity application switcher (which is what handles Alt-tab by default) by switching all of the /apps/compiz-1/plugins/unityshell/screen0/options/alt_tab_ settings to Disabled
  3. Add the shift plugin to /apps/compiz-1/general/screen0/options/active_plugins
  4. Optionally, to switch the keyboard shortcut from Alt-Tab to <Windows Key>-Tab and have it flip through all windows instead of just the windows on the current workspace, change:
    1. /apps/compiz-1/plugins/shift/screen0/options/next_key to Disabled
    2. /apps/compiz-1/plugins/shift/screen0/options/prev_key to Disabled
    3. /apps/compiz-1/plugins/shift/screen0/options/next_all_key to <Super>Tab
    4. /apps/compiz-1/plugins/shift/screen0/options/prev_all_key to <Super><Shift>Tab

Ubuntu 13.10 (Saucy Salamander) (Updated: November 9, 2013)

  1. Disable the Super key and prevent Super-tab from focusing the launcher
  2. sudo apt-get install compiz-plugins
  3. Add the shift plugin to /org/compiz/profiles/unity/plugins-with-set-keys and /org/compiz/profiles/unity/plugins/core/active-plugins
  4. Switch Super-tab from switching between current workspace windows to switching between all windows:
    1. dconf write /org/compiz/profiles/unity/plugins/shift/prev-all-key '"<Shift><Super>Tab"'
    2. dconf write /org/compiz/profiles/unity/plugins/shift/next-all-key '"<Super>Tab"'
    3. dconf write /org/compiz/profiles/unity/plugins/shift/prev-key '"Disabled"'
    4. dconf write /org/compiz/profiles/unity/plugins/shift/next-key '"Disabled"'

Ubuntu 14.04 (Trusty Tahr), Ubuntu 16.04 (Xenial Xerus) (Updated: October 7, 2017)

  1. Disable the Super key and prevent Super-tab from focusing the launcher
  2. sudo apt-get install compiz-plugins
  3. Add the shift plugin to /org/compiz/profiles/unity/plugins/core/active-plugins
  4. Switch Super-tab from switching between current workspace windows to switching between all windows:
    1. dconf write /org/compiz/profiles/unity/plugins/shift/prev-all-key '"<Shift><Super>Tab"'
    2. dconf write /org/compiz/profiles/unity/plugins/shift/next-all-key '"<Super>Tab"'
    3. dconf write /org/compiz/profiles/unity/plugins/shift/prev-key '"Disabled"'
    4. dconf write /org/compiz/profiles/unity/plugins/shift/next-key '"Disabled"'
Subscribe to All Posts - Wesley Tanaka