Ubuntu – How to remove the “Undo” popup when deleting a file in Nautilus

deletenautilusnotification

When I send a file to the Trash using the delete keyboard button, a popup appears at the top of the nautilus window, saying that the file has been removed, and showing a button to undo the operation.

I find this extremely annoying, because I can't click anything below that popup, and I have to wait until it disappears. Besides, I can undo the deletion with just a ctrl+Z, so I don't find it at all useful.

How can I get rid of this notification? I've looked in the preferences but there's nothing about this.

I have Ubuntu 18.04 and my GNOME version is 3.28.2.

Best Answer

I "removed" it doing this way:

  1. Go to ~/.themes/THEME-IN-USE/gtk-3.0
  2. Open gtk.css and add this at the end:

    .app-notification { padding: 0; margin: -80px 0 0 0; opacity: 0;}
    

    and save.

  3. Refresh theme in GNOME Tweaks (change to another one, and again change to your theme in use).

Now you can't see the popup.

Tested on Nautilus 3.26.4, GNOME 3.30.1.