42

Say I have two Chrome windows open like this:

enter image description here
enter image description here

It seems that the most recently used window always appears on top. In other words, the "Apply Digital Signatures" was the window I had open last. If I were to switch to the window showing the new tab, then the order in which the windows are displayed in the task bar suddenly changes.

Is there a way to keep them from shuffling around? I'd like to be able to order them however I want, like tabs in a web browser. (I'd also like to put them across different workspaces.)

pomsky
  • 68,507
wheeeee
  • 551
  • Probably not as such possible. these previews indeed are ordered according to access, as in the alt+tab switcher. If there would be a way to change this behavior, it would need to be provided by the Ubuntu Dock gnome shell extension, which is based on Dash to Dock. – vanadium Apr 05 '18 at 13:19
  • 11
    Did you find a solution to this? I find the changing order super irritating. – Jesbus Jun 11 '18 at 14:06
  • No, I haven't found a solution yet :( – wheeeee Jun 11 '18 at 17:35
  • Not what you are looking for, but it may be a good option in the mean time. You can change the behavior so clicking when there are multiple windows of the same type open, you cycle through them. The command to do that is
    gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'cycle-windows' to put it back to default use gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'previews'
    – rkeaing Nov 19 '18 at 07:01
  • Can you elaborate on how you would like to "put them across different workspaces"? This might be an entirely different question. – Starbuck Jan 21 '19 at 01:47
  • 1
    I'm actually not sure what I meant by that. I have a vague memory that in Ubuntu 16.something, when I switched workspaces, the preview would only show me which windows were open in that workspace. If this isn't true, then feel free to disregard that bit. – wheeeee Jan 22 '19 at 05:44
  • 1
    @wheeeee That one can be fixed easily: https://askubuntu.com/questions/992558/how-can-i-configure-the-ubuntu-dock-to-show-windows-only-from-the-current-worksp – pomsky Jan 22 '19 at 07:24
  • This is an irritating "feature". I want the order of these "thumbnails" to remain fixed. Because I can remember a fixed order. But I cannot remember which window I used last. I have been an Ubuntu user since 2010 and the UI/UX has been getting worse with every release. – Vikram Sharma Oct 31 '20 at 12:22

2 Answers2

24

The dock in Ubuntu 18.04 is a modified version of the original Dash to Dock gnome shell extension. The order of window previews is hard coded and was recently changed from recently used to when opened in response to this issue.

So no, you can't rearrange the window previews. I don't know when the changed behaviour will be merged into the Ubuntu version, but since it hasn't been included in 18.10, it may take some time, if it will happen at all.

You can, however install the latest version of Dash to Dock by following the instructions on the homepage.

Alternatively, as a user on the github page explained, you can supposedly replace the file /usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com/windowPreview.js with this version to make the window previews appear in the order the windows were opened.

danzel
  • 6,044
3

Yes, currently it's not possible.

But already there is a feature request for Dash to Dock about this trouble. Let's upvote it — https://github.com/micheleg/dash-to-dock/issues/639

Snaker
  • 508