Thanks to visit codestin.com
Credit goes to github.com

Skip to content

brunetton/Nemo-action-to-Nautilus-action-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nemo actions to Nautilus actions

Python script to convert Nemo actions to json configuration entry for the great Actions For Nautilus project

Example

Considering this simple Nemo action:

[Nemo Action]

Name=Copy filename
Exec="echo -n %f | xclip -f -selection primary | xclip -selection clipboard"
Icon=system-run
Selection=notnone
Extensions=any

Executing action-converter.py test.nemo_action will output:

{
  "type": "command",
  "label": "Copy filename",
  "command_line": "echo -n %f | xclip -f -selection primary | xclip -selection clipboard",
  "use_shell": true,
  "file_extensions": [
    "any"
  ]
},

-> to display result and to it to clipboard, you may use the provided convert.sh command:

./convert.sh my-action.nemo_action

  • json is displayed
  • json is copied to clipboard

About

Python script to convert Nemo actions to json configuration entry for the great Actions For Nautilus (https://github.com/bassmanitram/actions-for-nautilus) project

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published