// OMG! UBUNTU! — LINUX & OPEN SOURCE
A hidden Ubuntu feature I use to tidy up my desktop
Ubuntu’s Desktop Icons NG (DING) extension has a little-known way to bring order to a chaotic desktop: stacks.
Stacks groups multiple files of the same type in a collapsible icon, e.g. images in one stack, PDFs in another and so on. Folders don’t get grouped, and if there is only one of a type of file on the desktop, it is not stacked.
Expanding a stack by clicking on it reveals all files in the stack (other file icons bump out of the way). Multiple stacks can be expanded or collapsed at the same time, and stacks can be left open (there’s auto-collapse). Stacks persist between reboots.
But files don’t move anywhere; stacked groups are a visual tidy-up, not a literal one.
I had no idea this nifty feature even existed until I covered the DING GTK4 port back in July. The changelog then mentioned stacking had been made accessible.
“Stacks?” I thought, “Surely not desktop stacks like macOS has…”.
This isn’t a new feature. You can enable file stacking from the desktop on Ubuntu 24.04 LTS and above:
To switch desktop stacks off, repeat the steps above. All your files are return to individual detritus littered about the desktop.
Grouping is by based on file type only, so there’s no date options (as macOS equivalent has). All stacks use the same icon – a folder – which is a shame. But a small arrow emblem distinguishes stack folders from actual folders, and the name reflects the contents.
Can you exclude file types from being stacked, but not others? There is a gsettings value for unstackedtypes which I thought would help. It expects file strings, so “image/png” not “.png” – however, they still stack, but expanded by default.