How do I enable auto-arrange (not just "auto-align") for desktop icons, like in Windows?
-
1In 11.04 when you right-click on the desktop there is an option "Organize Desktop By Name". Is that what you were looking for? – Nitin Venkatesh Jun 06 '11 at 16:43
-
@nitstorm: That's likely what I was looking for, except that I have Ubuntu 10.04. :\ I guess I should've mentioned that in the question. – user541686 Jun 07 '11 at 00:46
-
1This option has been there for long, but been renamed a couple of times. Maybe it's something like "Cleanup by name" or similar (it should be the one above the auto-align checkbox). However, this is a one-time action and is not triggered automatically. – htorque Jun 07 '11 at 13:26
-
Close voters - why? 10.04 was not EOL when this was asked, and it's been answered. – Zanna May 20 '17 at 03:53
-
@Zanna: I think this is just how some people get their pleasure in life... – user541686 May 20 '17 at 04:18
9 Answers
There's no such feature to enable in Ubuntu. See this wishlist bug report about the feature request (it's from 2005...).

- 64,798
I wrote iconic
to solve this problem by letting you define a grid size larger than the icons. Additionally it will:
- Allow you to move icons to any of three monitors
- Not suffer the "lost icon syndrome" that occurs when monitors of multiple resolutions are used
- Sort icons alphabetically, alphabetically with "Link to" prefix ignored, sort by modified date ascending or date descending
- Allow different grid size (columns x rows) depending on monitor, EG more on 4K monitor than 2K monitor
- Instant Test button for quick experimentation on column x row changes or reserved space changes for monitor left, top, right or bottom areas
- Test button will last for x seconds defined by you, clear all windows before test and restore them after test
- Bash script for easy modifications
You can get the script on github.
Here's the main screen:
Visit the github page for iconic to see all the other screens, explanations and a copy of the script.

- 102,282
-
-
1@fixit7 My apologies for the oversight. Did that cause much inconvenience? I hope
yad
doesn't conflict with other apps. While we are on the subjectwmctrl
andxdotool
are also requirements. – WinEunuuchs2Unix Jun 03 '20 at 01:36 -
No problem. I saw that yad is in the script. And the script also told me that yad was not installed. It works ok, but I found it a bit confusing. I was looking for something that would save my icon locations on my desktop. Ubuntu-Mate frequently buggers up their locations. – fixit7 Jun 03 '20 at 02:09
-
1@fixit7 Saving the icon positions is a rather minor feature. The bigger ones is aligning icons evenly, sorting icons, stopping them from disappearing on multiple monitors and most especially moving icons to anyone of three monitors. I've updated github README with prerequisites and updated script with minor tweaks made in August and November 2019. – WinEunuuchs2Unix Jun 03 '20 at 02:28
-
-
1@fixit7 You mean when you click the Save Icons button? The filename is blank, give it a filename like "My icon settings at work" or "My icon settings June 3 2020" etc. – WinEunuuchs2Unix Jun 03 '20 at 10:39
Wow, 10 year old question, and it's still a relevant search result. In the latest LTS (at time of writing!) Ubuntu 20.04, the used the half-baked desktop-icons Gnome Shell extension, which is missing many basic features, like drag-and-drop interaction with Nautilus. Reading posts, forums, and issue tracker complaints, I gather than this is because decision-makers of some kind decreed that desktop icons are an antipattern and they would prefer not to support them at all.
But, there's a fork of their desktop-icons extension called "Desktop Icons NG (DING)" that solves the drag-and-drop, but development seems to be slow, s.t. newer version of it are not compatible with newer versions of Gnome Shell (what?), so their v18 addition of the arrangement feature is not available in the v17 that gets installed on my Ubuntu. (Why anyone would develop against the upstream version of Gnome, that gets used by approximately 1% of of the 1% of the world computer population who use Linux; is beyond me.)
SO! tl;dr, I installed a fork of DING "desktop-icons-neo", and it has all the features you'd expect Ubuntu to have out of the box. Just went to it on the gnome extensions site, flipped the switch to "on", disabled the built-in "Desktop Icons" in the built-in "Extensions" settings app, and then had the desired features in my desktop context menu.
But yeah, Linux will become the dominant desktop operating system any day now, sure.

- 507
Just a little modification for Ubuntu 17.04, you need to right click, select Keep Aligned and then Organise Desktop By Name.

- 1,275

- 121
Right-click on Desktop and click on Clean up by name

- 22,221
-
3Now, where is the 'auto' part? This changes the icon order exactly once when you trigger it. – htorque Jun 07 '11 at 13:27
-
Replace Nautilus by Nemo as Desktop managerment.
Install Nemo (test in Ubuntu 16.04, install Nemo 3.6; Nemo 2.xx is not support arrangement desktop; Ubuntu 18.04 use Nemo 4.x):
sudo add-apt-repository ppa:webupd8team/nemo3 sudo apt update sudo apt install nemo
Disable Gnome desktop icon:
gsettings set org.gnome.desktop.background show-desktop-icons false
Enable Nemo desktop management:
setsid nemo-desktop
After this command, you can Ctrl+c, the nemo-desktop is running in background.
Adjust horizontal-grid-adjust if need:
gsettings set org.nemo.desktop horizontal-grid-adjust 0.8
Use can config in
dconf-editor
:Finally, use need set
nemo-desktop
as startup application. Follow this link.Enjoy !!

- 1,496

- 21
-
-
@sureshvv what dock are you mention? I use dash to panel but I only take screenshot in icon area – Đức Hải Trần Oct 03 '20 at 09:34
-
dock is where all the icons to start programs like browser, open office etc. are kept. I like it on the left of the screen. Some people prefer bottom of screen, Without the dock I don't find the desktop useful. – sureshvv Oct 03 '20 at 16:27
For Ubuntu 20.04
Written on Friday June 19, 2020 by walterflash

- 141
-
Although this helps in rearranging the icons within the window that the command opens, it does NOT rearrange the icons on the desktop. IMO, not very helpful! – Vishwas M.R Feb 02 '22 at 13:10
Solution for Lubuntu (PCManFM):
Go to
/home/USER/.config/pcmanfm/default/
or/home/USER/.config/pcmanfm/lubuntu/
.Change
USER
to be your username.Run:
sudo nano pcmanfm.conf
Go to the section:
"[desktop]"
Change
sort_by
tosort_by=2
(if you want to sort by name).Log out, then log back in. Tadaaa! :)
I'm not an expert, probably there is some nicer way to do that with bash script or something..but this works and it is needed to be done only once. About sorting numbers I'm not sure which one is for what and didn't find any useful info, so you'll need to discover it by yourself by playing or finding some info.
I'm not sure would something similar work for Ubuntu and Nautilus.

- 117,780

- 311
- 1
- 4
- 8
Running Ubuntu 16.10 (Lubuntu Desktop)
- Right click desktop, click 'Select All' (or hit CTRL-A)
- Right click on any icon, select 'Snap to Grid'
Done.

- 131