Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Alt-tab seems slow, my machine has the proper drivers installed and everything else is fast except alt-tab. Setting the plugin to show icons instead of window previews doesn't help.

Is this a bug or is a way to speed this up?

share|improve this question
7  
I thought it was just my system. Good to know you can increase it! –  Marco Ceppi May 19 '11 at 15:20
2  
Anyone know why this is set at 2s by default? Can't imagine why that's considered useful... –  David Miller May 21 '11 at 10:09
1  
@David Miller, perhaps it is set to 2s to motivate users to change it, thereby discovering other Compiz settings to play with. :) –  Michael Moussa Aug 14 '11 at 16:27
add comment

4 Answers 4

up vote 18 down vote accepted

It ends up that there is a delay of 2ms set in the alt-tab switcher (called the Static Application Switcher) by default.

To change it, use you can use CompizConfig Settings Manager Install ccsm. After you install it, run it via the dash by searching for compiz or just run ccsm from alt-f2:

enter image description here

And then set Popup Window Delay to 0 in the behavior tab.

enter image description here

And crank up the speed:

enter image description here

share|improve this answer
    
Even after setting the popup delay to 0, my alt+tab delay was still noticibly slow. Simply disabling the compositing_manager did speed things up - but this is a bit drastic. It affects (often breaks) other applications' functionality if disabled (docky, gnome-do). To disable: run gconf-editor => edit (uncheck) /apps/metacity/general/compositing_manager –  michael_n Dec 8 '11 at 5:06
    
Does this still work in 12.04? –  Patrick Marchwiak Sep 27 '12 at 3:28
    
Seems to work in 12.10 as well. Although, you need to install compiz-plugins first (askubuntu.com/questions/208375/…) –  Mika Nov 10 '12 at 22:19
add comment

12.10

  1. Requirements: You will need Compiz Config Settings Manager (CCSM).

    sudo apt-get install compizconfig-settings-manager
    

    You may also need the Compiz Plugins too. The compiz plugins were included in compizconfig-settings-manager in earlier versions of Ubuntu

    sudo apt-get install compiz-plugins
    
  2. Enable Static Application Switcher

    CCSM > Window Management > Static Application Switcher > Check the box to enable it.

    2.1 You will be prompted with a "bindings conflict" dialogue. Select Resolve conflicts.

    enter image description here

    2.2 Now you will be prompted with this monstrosity:

    enter image description here

    Select yes to disable any and all conflicts. Which one is yes? The third option, furthest to the right, it will always be the third option furthest to the right.

    You will now get a weird Application Switcher when you Alt+Tab. It will look like you've broken everything. Next we'll configure it.

  3. Go to CCSM > Window Management > Static Application Switcher >

    3.1 Bindings

    CCSM > Window Management > Static Application Switcher > Bindings

    • Ensure the Next window binding is set to Alt+Tab
    • Ensure the Prev window binding is set to Shift+Alt+Tab
    • Ensure the Next window (All windows) binding is set to Control+Primary+Alt+Tab
    • Ensure the Prev window (All windows) binding is set to Shift+Control+Primary+Alt+Tab
    • Ensure all the binding above are disabled in the CCSM Ubuntu Unity Plugin (UUP). The binding for UUP can be found in CCSM > Ubuntu Unity Plugin > Switcher.

    The Static Application Switcher Bindings should like something like this:

    enter image description here

    And the Ubuntu Unity Plugin Bindings should look something like this (notice that the first 4 bindings are disabled, because we're using the static application switcher):

    enter image description here

    3.2 Behaviour

    CCSM > Window Management > Static Application Switcher > Behaviour

    • Speed = 50.0000

    • Timestep = 10.0000

      Timestep is how often the window's direction is recalculated. A high timestep will result in windows that overshoot their position and bounce back, and a low timestep will result in windows that drift slowly and accurately to their position. - http://wiki.compiz.org/Plugins/Scale

    • Popup Window Delay = 0.0000

      enter image description here

    3.3 Appearance

    CCSM > Window Management > Static Application Switcher > Appearance

    • Show icon only = Yes:Checked

      enter image description here

Done! Alt+Tab should be much faster.

share|improve this answer
    
great answer & info! Was actually only looking for a clear definition of "Timestep" of said plugin... a very clear n helpful post! thx indeed!! –  nutty about natty Jan 19 '13 at 23:12
    
PS: what does "auto change viewport" exactly mean/do? the tooltip leaves me guessing... and google doesn't want to pop the answer, either. –  nutty about natty Jan 19 '13 at 23:15
    
This worked for me on 12.04 as well. Thanks very much. –  Drew Noakes Mar 31 '13 at 23:06
add comment

"Quick Alt-Tab" switches between two upper windows in stack of many windows. Try to open many windows and press Alt-Tab quickly, not waiting for appearance of graphical "windows picker". Obviously small delay is to enable this feature.

share|improve this answer
add comment

Changing the popup window delay won't change the speed at which the applications switch. On the same settings page as in your answer, change 'Speed' from the default 4 to 1. That sped things up a lot on my setup.

share|improve this answer
    
Changing speed to 1 made it real slow to me, however when I cranked it to 50 it's basically instant. (Updated my answer) –  Jorge Castro May 19 '11 at 17:59
    
The speed property only affects the animation of the selection box within the popup. No matter what, the selected window will switch instantly each time you hit tab (after the popup delay,) but the box itself will get left behind at slow speeds. This becomes obvious if you go to the Appearance tab, twirl out select window highlight, and for highlight mode, choose bring selected to front. –  Dorkus1218 May 19 '11 at 18:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.