This post contains exhaustive contracts that will be useful for elementary OS. You can use this on ubuntu also,but needs to change the exec command to open appropriate applications.

Open terminal in current directory

1
2
3
4
5
6
7
[Contractor Entry]
Name=Summon ShellGod Here
Icon=terminal
Description=Open in terminal
MimeType=inode;application/x-sh;application/x-executable;
Exec=pantheon-terminal -w %U
Gettext-Domain=pantheon-terminal

Open folder as Root

1
2
3
4
5
6
7
[Contractor Entry]
Name=Summon Root on Folder
Icon=pantheon-files
Description=Open current folder as root privilege
MimeType=inode;
Exec=gksudo pantheon-files %U
Gettext-Domain=pantheon-files

Open file as Root

1
2
3
4
5
6
7
[Contractor Entry]
Name=Summon Root on File
Icon=scratch-text-editor
Description=open file as root with subl
MimeType=text
Exec=gksudo subl %U
Gettext-Domain=subl

Media Info - Video

1
2
3
4
5
6
7
[Contractor Entry]
Name=Media info
Icon=video
Description=media info
MimeType=video
Exec=gnome-terminal --window-with-profile=new1 -e "mediainfo -i %f"
Gettext-Domain=pantheon-files 

Media Info - Audio

1
2
3
4
5
6
7
[Contractor Entry]
Name=Media info
Icon=video
Description=media info
MimeType=audio
Exec=gnome-terminal --window-with-profile=new1 -e "mediainfo -i %f"
Gettext-Domain=pantheon-files  

Extract Ogg from Webm

install parallel prior to this

1
2
3
4
5
6
7
[Contractor Entry]
Name=Extract audio
Icon=/usr/share/icons/hicolor/128x128/apps/multimedia-audio-player.svg
Description=Extract audio
MimeType=video/webm
Exec=pantheon-terminal -e "parallel avconv -i '{}' -map 0:1 -c:a copy '{}.ogg' ::: %F"
Gettext-Domain=pantheon-files
← previous You can also navigate with left [or] right arrows next →