4. nemo custom commands
custom commands
er zijn nemo shell scripts en nemo actions
deze zouden min of meer hetzelfde zijn , maar met een verschil in opzetten
wat dat verschil precies is , is me nog niet echt duidelijk, maar waarschijnlijk te maken met de manier van configuratie :
action gebruiken een soort ini file plus een command om een custom script uit te voeren (gelijkaardig aan LXM startup config & desktop files ?)
scripts zijn scripts die gewoon uitgevoerd worden
zie : https://itsfoss.com/nemo-tweaks/
create a custom command / nemo action
make :
1. a customscript.sh file
2. a nemo action that calls that script
pass the folder name into the script: Exec=CustomScript.sh %F
locations :
scripts :
/home/ward/.local/share/nemo/scripts/
custom action files:
- /usr/share/nemo/actions/ for system-wide actions
- ~/.local/share/nemo/actions/ for user actions
Action files
is ongeveer het launchen van een script
hebben :
- “.nemo_action” als file extension.
- een .ini structuur :
voorbeeld :
[Nemo Action]
Name=Sequential Rename
Comment=Sequentially Rename All Files In Folder
Exec=ls | cat -n | while read n f; do mv "$f" "$n.jpg"; done
Icon-Name=Terminal
Selection=s
Extensions=dir;