Post

Linux nemo add right click action

Linux nemo add right click action

Nemo’s right-click menu is extensible via .nemo_action files — you can add your own commands that run on the selected file or folder. I use this to add quick terminal-open actions for different terminal emulators. The action format is simple and the change takes effect immediately without restarting Nemo.

  • Got to folder where nemo stores all right click actions
1
2
3

$ /home/$USER/.local/share/nemo/actions

  • Now create a new action file
1
$ touch open_in_sakura.nemo_action
  • Now using your favourite editor add the below lines (modify as required)
1
2
3
4
5
6
7
8
9
10
11
12
$ vi open_in_sakura.nemo_action

 [Nemo Action]

 Name=Open in Sakura
 Comment=Open the 'sakura' terminal in the selected folder
 Exec=sakura --working-directory="%F"
 Icon-Name=sakura
 Selection=any
 Extensions=dir;

$ # Save and exit

Now goto desktop or in any folder and click on mouse right click button, you should see the above action.

This post is licensed under CC BY 4.0 by the author.