https://wiki.archlinux.org/api.php?action=feedcontributions&user=CesarBrie&feedformat=atom
ArchWiki - User contributions [en]
2024-03-28T11:01:27Z
User contributions
MediaWiki 1.41.0
https://wiki.archlinux.org/index.php?title=Nemo&diff=278048
Nemo
2013-10-08T15:42:47Z
<p>CesarBrie: </p>
<hr />
<div>[[Category:File managers]]<br />
[[ar:Nemo]] <br />
{{Article summary start}}<br />
{{Article summary text|This article covers installation, configuration, and general usage tips for Nemo.}}<br />
{{Article summary heading|Related}}<br />
{{Article summary wiki|Cinnamon}}<br />
{{Article summary end}}<br />
<br />
[https://github.com/linuxmint/nemo Nemo] is a fork of [[Nautilus]]. It is also the file manager of the [[Cinnamon]] desktop.<br />
<br />
== Installation ==<br />
<br />
[https://wiki.archlinux.org/index.php/Pacman Install] {{Pkg|nemo}} from the [[official repositories]].<br />
<br />
=== Extensions ===<br />
<br />
Some programs can add extra functionality to Nemo. Here are a few packages that do just that:<br />
<br />
* {{App|Nemo File Roller|Integrate File Roller into Nemo.|https://github.com/linuxmint/nemo-extensions/tree/master/nemo-fileroller|{{Pkg|nemo-fileroller}}}}<br />
* {{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}}}}<br />
* {{App|RabbitVCS Nemo|Integrate RabbitVCS into Nemo.|http://www.rabbitvcs.org|{{AUR|rabbitvcs-nemo}}}}<br />
<br />
See [https://github.com/linuxmint/nemo-extensions nemo-extensions github repo] for all extensions.<br />
<br />
== Configuration ==<br />
<br />
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}}.<br />
<br />
=== Show / hide desktop icons ===<br />
<br />
To enable/disable desktop icons rendering feature in nemo, change the following setting true or false (false to hide, true to show): <br />
<br />
$ gsettings set org.nemo.desktop show-desktop-icons false<br />
<br />
=== Make Nemo your default file browser ===<br />
<br />
Add the following line to the Default Applications section of the file {{ic|~/.local/share/applications/mimeapps.list}}<br />
[Default Applications]<br />
inode/directory=nemo.desktop<br />
<br />
== Tips and tricks ==<br />
<br />
=== Nemo Actions ===<br />
<br />
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:<br />
* {{ic|/usr/share/nemo/actions/}} for system-wide actions<br />
* {{ic|$HOME/.local/share/nemo/actions/}} for user actions<br />
Pay attention to the name convention. Your file has to preserve the file ending {{ic|.nemo_action}}.<br />
<br />
==== Clam Scan ====<br />
<br />
{{hc|$HOME/.local/share/nemo/actions/clamscan.nemo_action|<br />
2=[Nemo Action]<br />
Name=Clam Scan<br />
Comment=Clam Scan<br />
<br />
Exec=gnome-terminal -x sh -c "clamscan -r %F <nowiki>|</nowiki> less"<br />
<br />
Icon-Name=bug-buddy<br />
<br />
Selection=Any<br />
<br />
Extensions=dir;exe;dll;zip;gz;7z;rar;<br />
}}<br />
<br />
==== Moving files ====<br />
<br />
{{hc|$HOME/.local/share/nemo/actions/archive.nemo_action|<br />
2=[Nemo Action]<br />
Active=true<br />
Name=Archive %N<br />
Comment=Archiving %N will add .archive to the object.<br />
Exec=<archive.py %F><br />
Selection=S<br />
Extensions=any;<br />
}}<br />
<br />
{{hc|$HOME/.local/share/nemo/actions/archive.py|<br />
2=#! /usr/bin/python2 -OOt<br />
import sys<br />
import os<br />
import shutil<br />
<br />
filename = sys.argv[0]<br />
print "Running " + filename<br />
print "With the following arguments:"<br />
for arg in sys.argv:<br />
if filename == arg:<br />
continue<br />
else:<br />
print arg<br />
#os.rename('%s','%s.archive') % (arg,arg)<br />
shutil.move(arg, arg+".archive")<br />
}}<br />
<br />
==== Meld compare ====<br />
<br />
{{hc|$HOME/.local/share/nemo/actions/compare-save-for-later.nemo_action|2=<br />
[Nemo Action]<br />
Active=true<br />
Name=Compare later<br />
Comment=Save file for comparison later.<br />
Exec=<compare.sh save %F><br />
Icon-Name=meld<br />
Selection=S<br />
Extensions=any<br />
}}<br />
<br />
{{hc|$HOME/.local/share/nemo/actions/compare-with-saved.nemo_action|2=<br />
[Nemo Action]<br />
Active=true<br />
Name=Compare with saved element<br />
Comment=Compare %F saved file or directory.<br />
Exec=<compare.sh compare %F><br />
Icon-Name=meld<br />
Selection=S<br />
Extensions=any<br />
}}<br />
<br />
{{hc|$HOME/.local/share/nemo/actions/compare.sh|2=<br />
#!/bin/bash<br />
savedfile=/var/tmp/compare-save-for-later.$USER<br />
comparator=meld<br />
if [ "$1" == "save" ]; then<br />
echo "$2" > "$savedfile"<br />
else<br />
"$comparator" $(cat "$savedfile") "$2"<br />
fi<br />
}}</div>
CesarBrie