Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
xfce:thunar:custom-actions [2019/11/22 02:55] – added bottom of page navigation kevinbowenxfce:thunar:custom-actions [2019/11/30 21:58] – added icon and section dividers kevinbowen
Line 1: Line 1:
 +{{ :xfce:thunar:thunar.png?nolink|}}
 ====== Custom Actions ====== ====== Custom Actions ======
  
Line 4: Line 5:
  
 This page serves as an introduction to the **Custom Actions** plugin, and includes a list of useful examples. This page serves as an introduction to the **Custom Actions** plugin, and includes a list of useful examples.
 +
 +----
  
 ===== Adding a Custom Action ===== ===== Adding a Custom Action =====
Line 26: Line 29:
 {{:xfce:thunar:uca-list.png}} {{:xfce:thunar:uca-list.png}}
 </figure> </figure>
 +
 +[[|Back to Top]]
 +----
  
 ===== Use mnemonics to open Thunar Custom Actions ===== ===== Use mnemonics to open Thunar Custom Actions =====
  
 When you create a Thunar Custom Action you can set the name with an underscore "_" before a letter to use it as mnemonic.  When you right click in a Thunar view, you can type the letter to access your custom action. When you create a Thunar Custom Action you can set the name with an underscore "_" before a letter to use it as mnemonic.  When you right click in a Thunar view, you can type the letter to access your custom action.
 +----
  
 ===== Examples ===== ===== Examples =====
Line 43: Line 50:
 **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 [[http://linux.die.net/man/1/gnome-search-tool|lot of other nice command-line options]] which you could use to create even more specialized actions. **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 [[http://linux.die.net/man/1/gnome-search-tool|lot of other nice command-line options]] which you could use to create even more specialized actions.
  
 +----
  
 ==== Finding files inside the current/selected folder with catfish ==== ==== Finding files inside the current/selected folder with catfish ====
Line 51: Line 59:
  
 **Note:** For this action, you'll need to have ''catfish'' installed, which is part of the ''catfish'' package. **Note:** For this action, you'll need to have ''catfish'' installed, which is part of the ''catfish'' package.
 +
 +----
  
 ==== Working with archives  (tar, gzip, etc) ==== ==== Working with archives  (tar, gzip, etc) ====
Line 69: Line 79:
  
 **Hint:** You may prefer the [[http://thunar.xfce.org/plugins.html#thunar-archive-plugin|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 [[http://xubuntu.org/|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. **Hint:** You may prefer the [[http://thunar.xfce.org/plugins.html#thunar-archive-plugin|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 [[http://xubuntu.org/|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 ==== ==== Playing music files ====
Line 81: Line 93:
  
 **Hint:** Works exactly the same with Audacious. **Hint:** Works exactly the same with Audacious.
 +
 +----
  
 ==== Burning an ISO file to a CD ==== ==== Burning an ISO file to a CD ====
Line 87: Line 101:
     * File pattern: *.iso     * File pattern: *.iso
     * Appears if selection contains: Other Files     * Appears if selection contains: Other Files
 +
 +----
  
 ==== Viewing images ==== ==== Viewing images ====
Line 95: Line 111:
 **Note:** This tip also works just as well with GThumb **Note:** This tip also works just as well with GThumb
  
 +----
  
 ==== Converting PNGs to JPEGs ==== ==== Converting PNGs to JPEGs ====
Line 103: Line 120:
  
 **Hint:** ''`basename %f .png`.jpg'' (be careful--those are //back//ticks) will strip the old .png extension off of the original filename. **Hint:** ''`basename %f .png`.jpg'' (be careful--those are //back//ticks) will strip the old .png extension off of the original filename.
 +
 +----
  
 ==== Losslessly Rotating JPEGs ==== ==== Losslessly Rotating JPEGs ====
Line 112: Line 131:
  
 [[https://thelinuxchronicles.blogspot.com/2012/06/thunar-custom-actions-resize-and-rotate.html|Here an example]] how rotation can be scripted with "convert". [[https://thelinuxchronicles.blogspot.com/2012/06/thunar-custom-actions-resize-and-rotate.html|Here an example]] how rotation can be scripted with "convert".
 +
 +----
  
 ==== Opening a terminal ==== ==== Opening a terminal ====
Line 120: Line 141:
  
 **Note:** You might need to type ''xfce4-terminal'' instead of just ''terminal'' for some distributions. **Note:** You might need to type ''xfce4-terminal'' instead of just ''terminal'' for some distributions.
 +
 +----
  
 ==== Opening a root terminal ==== ==== Opening a root terminal ====
Line 128: Line 151:
  
 **Note:** You should rewrite the command with normal straight quotes. **Note:** You should rewrite the command with normal straight quotes.
 +
 +----
  
 ==== Opening a root Thunar ==== ==== Opening a root Thunar ====
Line 136: Line 161:
  
 **Note:** Some distributions no longer include ''gksu''. Use ''pkexec'' instead. **Note:** Some distributions no longer include ''gksu''. Use ''pkexec'' instead.
 +
 +----
 +
 ==== Editing as root ==== ==== Editing as root ====
     * Name: **Edit as root**     * Name: **Edit as root**
Line 143: Line 171:
  
 **Note:** You'll need to replace put-your-favourite-text-editor-here with your favourite text editor (e.g. mousepad or geany). Also, see previous note about ''gksu''. **Note:** You'll need to replace put-your-favourite-text-editor-here with your favourite text editor (e.g. mousepad or geany). Also, see previous note about ''gksu''.
 +
 +----
  
 ==== Creating a symbolic link ==== ==== Creating a symbolic link ====
Line 157: Line 187:
     * File pattern: *     * File pattern: *
     * Appears if selection contains: //any//     * Appears if selection contains: //any//
 +
 +----
  
 ==== Setting an image as the desktop background ==== ==== Setting an image as the desktop background ====
Line 163: Line 195:
     * File pattern: *     * File pattern: *
     * Appears if selection contains: Image Files     * Appears if selection contains: Image Files
 +
 +----
  
 ==== Viewing the disk usage of the current directory ==== ==== Viewing the disk usage of the current directory ====
Line 171: Line 205:
  
 **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. **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 in a terminal ==== ==== Using 'nano' text editor in a terminal ====
Line 180: Line 216:
  
 Since nano isn't a GUI app, you must start it in a terminal window. Since nano isn't a GUI app, you must start it in a terminal window.
 +
 +----
  
 ==== Comparing selected files/directories ==== ==== Comparing selected files/directories ====
Line 188: Line 226:
  
 **Note:** You will need the ''meld'' package. **Note:** You will need the ''meld'' package.
 +
 +----
  
 ==== Changing OpenDocument-supported formats ==== ==== Changing OpenDocument-supported formats ====
Line 203: Line 243:
  
 You can go on, try ''man unoconv'' for details. You can go on, try ''man unoconv'' for details.
 +
 +----
 +
 ==== Download subtitles with periscope ==== ==== Download subtitles with periscope ====
     * Name: **Download subtitles**     * Name: **Download subtitles**
Line 210: Line 253:
  
 **Note:** You will need ''python-periscope'' package. Get it [[http://code.google.com/p/periscope/|here]]. You'll also need ''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. **Note:** You will need ''python-periscope'' package. Get it [[http://code.google.com/p/periscope/|here]]. You'll also need ''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 ==== ==== Rename subtitles easily ====
     * Name: **Rename subtitles**     * Name: **Rename subtitles**
Line 218: Line 264:
  
 **Note:** You will need ''subrnm'' script. Get it [[http://pastebin.com/DA8jwHz3|here]]. You'll also need ''zenity'' package. **Note:** You will need ''subrnm'' script. Get it [[http://pastebin.com/DA8jwHz3|here]]. You'll also need ''zenity'' package.
 +
 +----
  
 ==== Move files into a new folder ==== ==== Move files into a new folder ====