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.

When using task switching in the default graphical mode of Ubuntu 12.04, if they are multiple windows of the same kind, eg. multiple Terminal windows, you can see them all together and select which one you want.

enter image description here

My problem is that the order of these windows is constantly changed. It follows the "last used" order. I want them in a fix order always; how can I do it?

share|improve this question
Very annoying feature. I asked the same question here askubuntu.com/questions/271506/… but unfortunately still no answer. –  gumkins Jul 9 '14 at 14:54
This "issue" exists in 14.04 as well! These windows should really be ordered based on their relative positions on the screen, and desktops, when windows from more than one desktop are previewed. Only when one widow is placed closely on top of another (measured within a certain range of pixels) should the positioning of the preview depend on the "last used" rule. I would even make one more "tweak" to this rule: apply the regional language preferences, of "left-to-right" or "right-to-left" text, to decide which side of the screen is considered "first" -- the left, or the right. –  PJ Singh Nov 4 '14 at 19:43
A possible solution would be to keep the windows in the order they were created, but at least keep them fixed in order. I would prefer a random but stable order over this mess, I feel like I'm constantly juggling screens around. –  Minos Jan 14 at 14:35
I believe this would require changing the unity code. You might start here: unity3d.com/learn/documentation –  Elder Geek Feb 27 at 16:23

1 Answer 1

Rather than changing the unity codebase, you might consider using desktops to arrive at your desired result.

Example using Compiz Desktop Cube in CompizConfigSettingsManager

Open CompizConfigSettingsManager (ccsm) and change settings to match the following:



Open terminal 1

Use the keyboard shortcut CTRL-ALT--> (right arrow) to go to the next desktop to the right.

Open terminal 2

Use the keyboard shortcut CTRL-ALT--> (right arrow) to go to the next desktop to the right again.

Open terminal 3

Use the keyboard shortcut CTRL-ALT-<- (left arrow) to go to the previous desktop containing terminal 2 (or twice to get back to terminal 1)

Another Option

Use the Viewport manager in CompizConfig SettingManager and assign a key combination to go directly to the desktop of your choices ccsm-3

share|improve this answer

Your Answer


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.