برای اضافه کردن گزینه به راست کلیک در فایل منیجر ‌thunar

از منوی edit گزینه configure custom actions را انتخاب نموده و موارد زیر را طبق توضیح وارد کنید

Opening a root Thunar

Name: Open a root Thunar here
Command: gksu thunar %f
File pattern: *
Appears if selection contains: Directories

-----------------------------------------------------------------------

Finding files in the current folder with catfish

  • Name: Search files…
  • Command: catfish --fileman=thunar --path=%f
  • File pattern: *
  • Appears if selection contains: Directories

Note: For this action, you'll need to have catfish installed, which is part of the catfish package.

-----------------------------------------------------------------------

Finding files inside the selected folder with catfish

  • Name: Search files inside…
  • Command: catfish --fileman=thunar --path=%f%d
  • File pattern: *
  • Appears if selection contains: Directories

Note: For this action, you'll need to have catfish installed, which is part of the catfish package.

-----------------------------------------------------------------------

Working with archives (tar, gzip, etc)

  • Name: Extract here (bzip2)
  • Command: tar xjf %n
  • File pattern: *.tar.bz2;*.tbz2
  • Appears if selection contains: Other Files
  • Name: Extract here (zip)
  • Command: unzip %f
  • File pattern: *.zip
  • Appears if selection contains: Other Files
  • Name: Create tar.gz from folder
  • Command: tar czvf %n.tar.gz %n
  • File pattern: *
  • Appears if selection contains: Directories

===============================================

Finding files in the current folder

  • Name: Search…
  • Command: gnome-search-tool –path=%f
  • File pattern: *
  • Appears if selection contains: Directories

Note: For this action, you'll need to have gnome-search-tool installed, which is part of the gnome-utils package. This program also has a lot of other nice command-line options which you could use to create even more specialized actions.

Finding files in the current folder with catfish

  • Name: Search files…
  • Command: catfish --fileman=thunar --path=%f
  • File pattern: *
  • Appears if selection contains: Directories

Note: For this action, you'll need to have catfish installed, which is part of the catfish package.

Finding files inside the selected folder with catfish

  • Name: Search files inside…
  • Command: catfish --fileman=thunar --path=%f%d
  • File pattern: *
  • Appears if selection contains: Directories

Note: For this action, you'll need to have catfish installed, which is part of the catfish package.

Working with archives (tar, gzip, etc)

  • Name: Extract here (bzip2)
  • Command: tar xjf %n
  • File pattern: *.tar.bz2;*.tbz2
  • Appears if selection contains: Other Files
  • Name: Extract here (zip)
  • Command: unzip %f
  • File pattern: *.zip
  • Appears if selection contains: Other Files
  • Name: Create tar.gz from folder
  • Command: tar czvf %n.tar.gz %n
  • File pattern: *
  • Appears if selection contains: Directories

Hint: You may prefer the Thunar Archive Plugin, which does pretty much the same thing with less manual setup required on your part. It's either included with your distribution (in the case of Xubuntu), or available as a separate package (thunar-archive-plugin in Debian Etch). You might also need the xarchiver or “squeeze” package for things to work quite right.

Playing music files

  • Name: Play with XMMS
  • Command: xmms %F
  • File pattern: *
  • Appears if selection contains: Directories, Audio Files
  • Name: Enqueue in XMMS
  • Command: xmms -e %F
  • File pattern: *
  • Appears if selection contains: Directories, Audio Files

Hint: Works exactly the same with Audacious.

Burning an ISO file to a CD

  • Name: Burn with K3B
  • Command: k3b --cdimage %f
  • File pattern: *.iso
  • Appears if selection contains: Other Files

Viewing images

  • Name: View with GQview
  • Command: gqview %f
  • File pattern: *
  • Appears if selection contains: Directories, Image Files

Note: This tip also works just as well with GThumb

Converting PNGs to JPEGs

  • Name: To JPEG
  • Command: convert %f -quality 75 %f.jpg
  • File pattern: *.png
  • Appears if selection contains: Image Files

Hint: `basename %f .png`.jpg (be careful–those are backticks) will strip the old .png extension off of the original filename.

Losslessly Rotating JPEGs

  • Name: Rotate Clockwise
  • Command: for file in %F; do tempfile=$(mktemp); (jpegtran -copy all -rotate 90 $file > $tempfile); mv -f $tempfile $file; rm -f $tempfile; done
  • File pattern: *.jpg;*.JPG;*.jpeg;*.JPEG
  • Appears if selection contains: JPEG Image Files

Note: jpegtran is available as part of the libjpeg or libjpeg-progs packages of most distributions. Unlike using “convert”, the complicated loop structure is necessary with “jpegtran”: “jpegtran -rotate 90 -outfile %F %F” will produce a 0kb file.

Opening a terminal

  • Name: Open in a terminal
  • Command: terminal --default-working-directory=%d
  • File pattern: *
  • Appears if selection contains: Directories

Note: You might need to type xfce4-terminal instead of just terminal for some distributions.

Opening a root terminal

  • Name: Open a root terminal here
  • Command: gksu “xfce4-terminal –default-working-directory=%f”
  • File pattern: *
  • Appears if selection contains: Directories

Note: You should rewrite the command with normal straight quotes.

Opening a root Thunar

  • Name: Open a root Thunar here
  • Command: gksu thunar %f
  • File pattern: *
  • Appears if selection contains: Directories

Editing as root

  • Name: Edit as root
  • Command: gksu put-your-favourite-text-editor-here %f
  • File pattern: *
  • Appears if selection contains: Text files

Note: You'll need to replace put-your-favourite-text-editor-here with your favourite text editor (e.g. mousepad or geany).

  • Name: Create symlink
  • Command: ln -s %f ”%n (symlink)”
  • File pattern: *
  • Appears if selection contains: Directories, other files

Saving the selected file/folder's pathname to the clipboard

For fans of the Windows “SendTo Extensions” power toy. This tip requires the xclip program, which you may need to install using your distribution's package manager.

  • Name: Copy Pathname to Clipboard
  • Description: Copies file's full pathname to the X PRIMARY selection
  • Command: echo -n %f | xclip -i
  • File pattern: *
  • Appears if selection contains: any

Setting an image as the desktop background

  • Name: Set as desktop background
  • Command:

    xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/image-path -s %f
  • File pattern: *
  • Appears if selection contains: Image Files

Viewing the disk usage of the current directory

  • Name: Disk Usage
  • Command: baobab %d
  • File pattern: *
  • Appears if selection contains: Tick all the boxes

Note: The idea is to get a visual picture of the current directory and any subdirectories. You could also use fsview or filelight, but the visuals are crisper in baobab.

Using 'nano' text editor

  • Command: terminal -x nano %f

Since nano isn't a GUI app, you must start it in a terminal window.

Comparing selected files/directories

  • Name: Compare
  • Command: meld %F
  • File pattern: *
  • Appears if selection contains: Directories and Text files

Note: You will need meld package.

Changing OpenOffice.org supported formats

Note: You will need unoconv package for all following actions.

  • Name: Convert to ODT
  • Command: unoconv -f odt %F
  • File pattern: *.doc;*.docx
  • Appears if selection contains: Other files
  • Name: Export to PDF
  • Command: unoconv -f pdf %F
  • File pattern: *.doc;*.docx;*.odt;*.odp;*.pps;*.ppt;*.xls;*.xlsx;*.ods;*.pptx
  • Appears if selection contains: Other files

You can go on, try man unoconv for details.

Download subtitles with periscope

  • Name: Download subtitles
  • Command: periscope -l en %F && zenity –info –title “Done” –text “Subtitles downloaded successfully” || zenity –error –title “Error” –text “Subtitles not downloaded successfully”
  • File pattern: *
  • Appears if selection contains: Video Files

Note: You will need python-periscope package. Get it here. You'll also neeed zenity package. This command will try to get the English subtitles, change -l en to something else (fr, de, pt-br, …). You should rewrite the command with normal straight quotes.

Rename subtitles easily

  • Name: Rename subtitles
  • Description: Select video and subtitles file. Subtiles will be reanmed based on the video name.
  • Command: subrnm %F
  • File pattern: *.avi;*.mp4;*.crdownload;*.srt;*.sub
  • Appears if selection contains: Video Files, Text Files, Other Files

Note: You will need subrnm script. Get it here. You'll also neeed zenity package.