Nemo: Difference between revisions

Klinger (talk | contribs)
Undo revision 20639 The category is not redundant. This application is both an application and a file manager.
Tag: Undo
m Fixed link to dconf-editor
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[https://github.com/linuxmint/nemo Nemo] is the default file manager for Cinnamon.
[https://github.com/linuxmint/nemo Nemo] is the default file manager for [[Cinnamon]]. It is a fork of [[Nautilus|GNOME's Nautilus]].


== Installation ==
== Installation ==
Line 9: Line 9:
=== Set Nemo as default file browser ===
=== Set Nemo as default file browser ===


==== Home-Manager ====
To set Nemo as the default file browser, [[Default_applications|create a desktop entry]] and set it as a default application using [[Home Manager]]:
To set Nemo as the default file browser, [[Default_applications|create a desktop entry]] and set it as a default application using [[Home Manager]]:


Line 23: Line 24:
     };
     };
};}}
};}}
==== NixOS ====
On NixOS, you don't need to create a nemo.desktop file. Just add the following to your configuration:<syntaxhighlight lang="nixos"># configuration.nix
{ config, pkgs, ... }:
{
  # ...
  xdg = {
    mime.defaultApplications = {
      "inode/directory" = [ "nemo.desktop" ];
      "application/x-gnome-saved-search" = [ "nemo.desktop" ];
    };
  };
  # ...
}</syntaxhighlight>


=== Change the default terminal emulator for Nemo ===
=== Change the default terminal emulator for Nemo ===
Line 58: Line 74:


{{ic|<Alt>}}, {{ic|<Primary>}}, and {{ic|<Shift>}} can be used as key modifiers (for example, {{ic|<Primary><Shift>t}}).
{{ic|<Alt>}}, {{ic|<Primary>}}, and {{ic|<Shift>}} can be used as key modifiers (for example, {{ic|<Primary><Shift>t}}).
=== With extensions ===
When using {{nixos:package|nemo-with-extensions}}, the default Mint installation plugins (aside from nemo-share) are provided by default: {{Nixos:package|nemo-emblem}}, {{Nixos:package|folder-color-switcher}}, {{Nixos:package|nemo-python}}, and {{Nixos:package|nemo-fileroller}} are provided.<syntaxhighlight lang="nixos">
# configuration.nix
{ config, pkgs, ... }:
{
  environment.systemPackages = (with pkgs; [
    (nemo-with-extensions.override {
      extensions = with pkgs; [ nemo-seahorse ];
      # useDefaultExtensions = false;  # Uncomment to not add default extensions
    })
  ]);
}
</syntaxhighlight>
=== Declarative preference configuration ===
Nemo preferences can be configured decoratively.<syntaxhighlight lang="nixos">
{
  programs.dconf.profiles.user.databases = [
    {
      settings = {
        "org/nemo/preferences" = {
          click-policy = "double";
          date-format = "iso";
          show-advanced-permissions = true;
          show-hidden-files = true;
          show-toggle-extra-pane-toolbar = true;
          size-prefixes = "base-10";
          tooltips-in-icon-view = false;
          tooltips-in-list-view = false;
        };
        "org/nemo/preferences/menu-config" = {
          selection-menu-open-as-root = false;
          selection-menu-open-in-new-tab = false;
          selection-menu-pin = false;
        };
      };
    }
  ];
}
</syntaxhighlight>You can use {{Nixos:package|dconf-editor}} to view existing dconf entries made through the Nemo preferences menu, or use [https://github.com/Denperidge/scripts/blob/main/development/dconf-to-nixos dconf-to-nixos] to export your current preferences into copy-pasteable NixOS settings.


See [https://wiki.archlinux.org/index.php?title=Nemo Nemo - ArchWiki] for further information.
See [https://wiki.archlinux.org/index.php?title=Nemo Nemo - ArchWiki] for further information.
[[Category:Applications]]
[[Category:Applications]]
[[Category:File Manager]]
[[Category:File Manager]]