Can I change the ordering for grouped dock items to be static? [duplicate]
Say I have two Chrome windows open like this:
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.)
Solution 1:
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/[email protected]/windowPreview.js
with this version to make the window previews appear in the order the windows were opened.
Solution 2:
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