Ubuntu – Trash and mounted volumes in Ubuntu Dock on Ubuntu 18.04

18.04gnome-shelliconstrashubuntu-dock

When you install Ubuntu 18.04, you won't have Trash in the Dock (Launcher). Instead, it's in the Desktop, and when you mount a volume, it appears in the Desktop; And it's a little messy if you have another stuff on your Desktop.

So I downloaded tweak-tool, there's an option to remove the trash icon and mounted volumes from Desktop.

How can I set the trash and mounted volumes to appear on the Dock just like previous versions of Ubuntu?

Best Answer

Run this command in terminal for enabling 'Trash' icon on dock

gsettings set org.gnome.shell.extensions.dash-to-dock show-trash true

To disable the same, execute

gsettings set org.gnome.shell.extensions.dash-to-dock show-trash false