Nemo: Difference between revisions

34j (talk | contribs)
mNo edit summary
Added using extensions
 
(6 intermediate revisions by 5 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]].


== Installation ==
== Installation ==


Install the <code>nemo-with-extensions</code> or <code>nemo</code> package.  
Install the {{nixos:package|nemo-with-extensions}} or {{nixos:package|nemo}} package.  


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


To set Nemo as the default file browser, create a desktop entry and set it as a default application using [[Home Manager]]:
==== 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]]:


{{file|~/.config/home-manager/home.nix|nix|3=
{{file|~/.config/home-manager/home.nix|nix|3=
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 31: Line 47:
dconf = {
dconf = {
     settings = {
     settings = {
         "org/cinnamon/desktop/default-applications/terminal" = {
         "org/cinnamon/desktop/applications/terminal" = {
             exec = "terminal-name";
             exec = "terminal-name";
             # exec-arg = ""; # argument
             # exec-arg = ""; # argument
Line 37: Line 53:
     };
     };
};}}
};}}
=== Set keyboard shortcut for "Open in terminal" ===
To edit keyboard shortcuts, set dconf.settings and edit <code>~/.gnome2/accels/nemo</code> using Home Manager (replacing "F4" with the desired key combination):
{{file|~/.config/home-manager/home.nix|nix|3=
dconf = {
    settings = {
        "org/cinnamon/desktop/interface" = {
            can-change-accels = true;
        };
    };
};
home.file = {
    ".gnome2/accels/nemo".text = ''
    (gtk_accel_path "<Actions>/DirViewActions/OpenInTerminal" "F4")
    '';
};}}
{{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>See [https://wiki.archlinux.org/index.php?title=Nemo Nemo - ArchWiki] for further information.


[[Category:Applications]]
[[Category:Applications]]
[[Category:File Manager]]
[[Category:File Manager]]