Difference between revisions of "Nemo"

From ArchWiki
Jump to: navigation, search
m (Nemo Actions)
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
[[Category:File managers]]
 
[[Category:File managers]]
[https://github.com/linuxmint/nemo Nemo] is the file manager of the [[Cinnamon]] desktop.
+
[[ar:Nemo]]
 +
{{Article summary start}}
 +
{{Article summary text|This article covers installation, configuration, and general usage tips for Nemo.}}
 +
{{Article summary heading|Related}}
 +
{{Article summary wiki|Cinnamon}}
 +
{{Article summary end}}
 +
 
 +
[https://github.com/linuxmint/nemo Nemo] is a fork of [[Nautilus]], the file manager of the [[Cinnamon]] desktop.
  
 
== Installation ==
 
== Installation ==
  
[https://wiki.archlinux.org/index.php/Pacman Install] {{Pkg|nemo}} from the [https://wiki.archlinux.org/index.php/Official_repositories Official Repositories].
+
[https://wiki.archlinux.org/index.php/Pacman Install] {{Pkg|nemo}} from the [[official repositories]].
  
=== Make Nemo your default file browser ===
+
=== Extensions ===
  
Change from Nautilus to Nemo :
+
Some programs can add extra functionality to Nemo. Here are a few packages that do just that:
{{hc|/usr/share/applications/nautilus.desktop|
+
 
2=[...]
+
* {{App|Nemo File Roller|Integrate File Roller into Nemo.|https://github.com/linuxmint/nemo-extensions/tree/master/nemo-fileroller|{{Pkg|nemo-fileroller}}}}
#Exec=nautilus %U
+
* {{App|Nemo Seahorse|Allows encryption and decryption of OpenPGP files using GnuPG.|https://github.com/linuxmint/nemo-extensions/tree/master/nemo-python|{{AUR|nemo-seahorse}}}}
Exec=nemo %U
+
* {{App|RabbitVCS Nemo|Integrate RabbitVCS into Nemo.|http://www.rabbitvcs.org|{{AUR|rabbitvcs-nemo}}}}
[...]
+
 
}}
+
See [https://github.com/linuxmint/nemo-extensions nemo-extensions github repo] for all extensions.
  
 
== Configuration ==
 
== Configuration ==
 +
 +
Nemo is simple to configure graphically, but not all potential configurations can be done via the preferences menu in nautilus. More options are available with {{Pkg|dconf-editor}} under {{ic|org.nemo}}.
  
 
=== Show / hide desktop icons ===
 
=== Show / hide desktop icons ===
# false to hide ; true to show
 
dconf write /org/nemo/desktop/show-desktop-icons false
 
  
== [https://github.com/linuxmint/nemo-extensions Extensions] ==
+
To enable/disable desktop icons rendering feature in nemo, change the following setting true or false (false to hide, true to show):
* {{App|Nemo fileroller|Integrate File Roller into Nemo.|https://github.com/linuxmint/nemo-extensions/tree/master/nemo-fileroller|{{Pkg|nemo-fileroller}}}}
+
 
* {{App|RabbitVCS Nemo|Integrate RabbitVCS into Nemo.|http://www.rabbitvcs.org|{{AUR|rabbitvcs-nemo}}}}
+
$ gsettings set org.nemo.desktop show-desktop-icons false
* {{App|Python2 Nemo|Python bindings for the Nemo Extension API.|https://github.com/linuxmint/nemo-extensions/tree/master/nemo-python|{{AUR|python2-nemo}}}}
+
 
 +
=== Make Nemo your default file browser ===
 +
 
 +
Add the following line to the Default Applications section of the file {{ic|~/.local/share/applications/mimeapps.list}}
 +
[Default Applications]
 +
inode/directory=nemo.desktop
 +
 
 +
== Tips and tricks ==
 +
 
 +
=== Nemo Actions ===
  
== Nemo Actions ==
+
Nemo allows the user to add new entries to the context menu. The file {{ic|[https://github.com/linuxmint/nemo/blob/master/files/usr/share/nemo/actions/sample.nemo_action /usr/share/nemo/actions/sample.nemo_action]}} contains an example of a Nemo action. Places where to put custom action files:
It allows the user to add new entries to the Nemo context menu.<br/>
+
* {{ic|/usr/share/nemo/actions/}} for system-wide actions
The file {{ic|/usr/share/nemo/actions/sample.nemo_action}} contains an example of a Nemo action.<br/>
+
* {{ic|$HOME/.local/share/nemo/actions/}} for user actions
 
Pay attention to the name convention. Your file has to preserve the file ending {{ic|.nemo_action}}.
 
Pay attention to the name convention. Your file has to preserve the file ending {{ic|.nemo_action}}.
 +
 +
==== Clam Scan ====
  
 
{{hc|$HOME/.local/share/nemo/actions/clamscan.nemo_action|
 
{{hc|$HOME/.local/share/nemo/actions/clamscan.nemo_action|
Line 44: Line 62:
  
 
Extensions=dir;exe;dll;zip;gz;7z;rar;
 
Extensions=dir;exe;dll;zip;gz;7z;rar;
 +
}}
 +
 +
==== Moving files ====
 +
 +
{{hc|$HOME/.local/share/nemo/actions/archive.nemo_action|
 +
2=[Nemo Action]
 +
Active=true
 +
Name=Archive %N
 +
Comment=Archiving %N will add .archive to the object.
 +
Exec=<archive.py %F>
 +
Selection=S
 +
Extensions=any;
 +
}}
 +
 +
{{hc|$HOME/.local/share/nemo/actions/archive.py|
 +
2=#! /usr/bin/python2 -OOt
 +
import sys
 +
import os
 +
import shutil
 +
 +
filename = sys.argv[0]
 +
print "Running " + filename
 +
print "With the following arguments:"
 +
for arg in sys.argv:
 +
    if filename == arg:
 +
        continue
 +
    else:
 +
        print arg
 +
        #os.rename('%s','%s.archive') % (arg,arg)
 +
        shutil.move(arg, arg+".archive")
 +
}}
 +
 +
==== Meld compare ====
 +
 +
{{hc|$HOME/.local/share/nemo/actions/compare-save-for-later.nemo_action|2=
 +
[Nemo Action]
 +
Active=true
 +
Name=Compare later
 +
Comment=Save file for comparison later.
 +
Exec=<compare.sh save %F>
 +
Icon-Name=meld
 +
Selection=S
 +
Extensions=any
 +
}}
 +
 +
{{hc|$HOME/.local/share/nemo/actions/compare-with-saved.nemo_action|2=
 +
[Nemo Action]
 +
Active=true
 +
Name=Compare with saved element
 +
Comment=Compare %F saved file or directory.
 +
Exec=<compare.sh compare %F>
 +
Icon-Name=meld
 +
Selection=S
 +
Extensions=any
 +
}}
 +
 +
{{hc|$HOME/.local/share/nemo/actions/compare.sh|2=
 +
#!/bin/bash
 +
savedfile=/var/tmp/compare-save-for-later.$USER
 +
comparator=meld
 +
if [ "$1" == "save" ]; then
 +
echo "$2" > "$savedfile"
 +
else
 +
"$comparator" $(cat "$savedfile") "$2"
 +
fi
 
}}
 
}}

Revision as of 17:29, 3 September 2013

Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary end

Nemo is a fork of Nautilus, the file manager of the Cinnamon desktop.

Installation

Install nemo from the official repositories.

Extensions

Some programs can add extra functionality to Nemo. Here are a few packages that do just that:

  • Nemo File Roller — Integrate File Roller into Nemo.
https://github.com/linuxmint/nemo-extensions/tree/master/nemo-fileroller || nemo-fileroller
  • Nemo Seahorse — Allows encryption and decryption of OpenPGP files using GnuPG.
https://github.com/linuxmint/nemo-extensions/tree/master/nemo-python || nemo-seahorseAUR
  • RabbitVCS Nemo — Integrate RabbitVCS into Nemo.
http://www.rabbitvcs.org || rabbitvcs-nemoAUR

See nemo-extensions github repo for all extensions.

Configuration

Nemo is simple to configure graphically, but not all potential configurations can be done via the preferences menu in nautilus. More options are available with dconf-editor under org.nemo.

Show / hide desktop icons

To enable/disable desktop icons rendering feature in nemo, change the following setting true or false (false to hide, true to show):

$ gsettings set org.nemo.desktop show-desktop-icons false

Make Nemo your default file browser

Add the following line to the Default Applications section of the file ~/.local/share/applications/mimeapps.list

[Default Applications]
inode/directory=nemo.desktop

Tips and tricks

Nemo Actions

Nemo allows the user to add new entries to the context menu. The file /usr/share/nemo/actions/sample.nemo_action contains an example of a Nemo action. Places where to put custom action files:

  • /usr/share/nemo/actions/ for system-wide actions
  • $HOME/.local/share/nemo/actions/ for user actions

Pay attention to the name convention. Your file has to preserve the file ending .nemo_action.

Clam Scan

$HOME/.local/share/nemo/actions/clamscan.nemo_action
[Nemo Action]
Name=Clam Scan
Comment=Clam Scan

Exec=gnome-terminal -x sh -c "clamscan -r %F | less"

Icon-Name=bug-buddy

Selection=Any

Extensions=dir;exe;dll;zip;gz;7z;rar;

Moving files

$HOME/.local/share/nemo/actions/archive.nemo_action
[Nemo Action]
Active=true
Name=Archive %N
Comment=Archiving %N will add .archive to the object.
Exec=<archive.py %F>
Selection=S
Extensions=any;
$HOME/.local/share/nemo/actions/archive.py
#! /usr/bin/python2 -OOt
import sys
import os
import shutil

filename = sys.argv[0]
print "Running " + filename
print "With the following arguments:"
for arg in sys.argv:
    if filename == arg:
        continue
    else:
        print arg
        #os.rename('%s','%s.archive') % (arg,arg)
        shutil.move(arg, arg+".archive")

Meld compare

$HOME/.local/share/nemo/actions/compare-save-for-later.nemo_action
[Nemo Action]
Active=true
Name=Compare later
Comment=Save file for comparison later.
Exec=<compare.sh save %F>
Icon-Name=meld
Selection=S
Extensions=any
$HOME/.local/share/nemo/actions/compare-with-saved.nemo_action
[Nemo Action]
Active=true
Name=Compare with saved element
Comment=Compare %F saved file or directory.
Exec=<compare.sh compare %F>
Icon-Name=meld
Selection=S
Extensions=any
$HOME/.local/share/nemo/actions/compare.sh
#!/bin/bash
savedfile=/var/tmp/compare-save-for-later.$USER
comparator=meld
if [ "$1" == "save" ]; then
	echo "$2" > "$savedfile"
else
	"$comparator" $(cat "$savedfile") "$2"
fi