[Thunar-workers] [Thunar File Manager] page changed: documentation:custom_actions

thunar-workers at xfce.org thunar-workers at xfce.org
Sun Jan 20 12:45:08 CET 2008


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2008/01/20 11:45
Browser     : Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.10) Gecko/20071115 Iceweasel/2.0.0.10 (Debian-2.0.0.10-0etch1)
IP-Address  : 72.235.175.12
Hostname    : udp231988uds.hawaiiantel.net
Old Revision: http://thunar.xfce.org/pwiki/documentation/custom_actions?rev=1194608995
New Revision: http://thunar.xfce.org/pwiki/documentation/custom_actions
Edit Summary: Added "Copy pathname to clipboard" tip; some style cleanup
User        : kernst

@@ -30,87 +30,92 @@
  You can use the [[http://thunar.xfce.org/pwiki/start#mailinglist|thunar-dev mailinglist]] to get in touch with the developers, if you have questions about this short tutorial or custom actions in general.
  
  ===== Examples =====
  
- Here are a few useful examples of custom actions, feel free to extend this list.
+ Here are a few useful examples of custom actions. Feel free to extend this list.
  
- ==== working with archives  (tar, gzip, etc) ====
-     * Name: Extract here (bzip2)
-     * Command: tar xjf %n
+ ==== 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
+     * 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
+     * Name: **Create tar.gz from folder**
+     * Command: ''tar czvf %n.tar.gz %n''
      * File pattern: *
      * Appears if selection contains: folders
  
- ==== Play music ====
+ **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'' package for things to work quite right.
  
-     * Name: Play with XMMS
-     * Command: xmms %F
+ ==== 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
+     * Name: **Enqueue in XMMS**
+     * Command: ''xmms -e %F''
      * File pattern: *
      * Appears if selection contains: Directories, Audio Files
  
- ==== Burn ====
-     * Name: Burn with K3B
-     * Command: k3b --cdimage %f
+ ==== Burning an ISO file to a CD ====
+     * Name: **Burn with K3B**
+     * Command: ''k3b --cdimage %f''
      * File pattern: *.iso
      * Appears if selection contains: Other Files
  
- ==== View images ====
-     * Name: View with GQview
-     * Command: gqview %f
+ ==== 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
  
- ==== Convert PNGs to JPEGs ====
-     * Name: To JPEG
-     * Command: convert %f -quality 75 %f.jpg
+ ==== Converting PNGs to JPEGs ====
+     * Name: **To JPEG**
+     * Command: ''convert %f -quality 75 %f.jpg''
      * File pattern: *.png
      * Appears if selection contains: Image Files
+ **Note:** You can use a similar form for rotating JPEG files losslessly using the ''jpegtran'' utility (available as part of the libjpeg or libjpeg-progs packages of most distributions).
  
- ==== Open a terminal ====
-     * Name: Open in a terminal
-     * Command: terminal --default-working-directory=%d
+ ==== 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.
  
- ==== Create a symbolic link ====
-     * Name: Create symlink
-     * Command: ln -s %f "%n (symlink)"
+ ==== Creating a symbolic link ====
+     * 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//
  
- 
- 
- ==== Put a set as desktop background option in context menu ====
-     * Name: Set as Desktop
-     * Command: echo '# xfce backdrop list\n%f'>$HOME/.config/xfce4/desktop/backdrops.list; killall -USR1  xfdesktop
+ ==== Setting an image as the desktop background ====
+     * Name: **Set as desktop background**
+     * Command:<code>echo '# xfce backdrop list\n%f'>$HOME/.config/xfce4/desktop/backdrops.list; killall -USR1 xfdesktop</code>
      * File pattern: *
      * Appears if selection contains: Image Files
  
- Note: get a randomizing wallpaper script here -
- 
- [[http://s7dhansh.blogspot.com/2007/04/xfce-as-desktop-and-random-desktop.html]]
- 
- 
+ **Note:** ''%%xfdesktop --reload%%'' should also work instead of ''killall''. You can find details, and a randomizing wallpaper script which works with XFCE [[http://s7dhansh.blogspot.com/2007/04/xfce-as-desktop-and-random-desktop.html|in this blog post]].
  
- ==== View the disk usage of the current directory ====
-     * Name: Disk Usage
-     * Command: baobab %d
+ ==== 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.



-- 
This mail was generated by DokuWiki at
http://thunar.xfce.org/pwiki/




More information about the Thunar-workers mailing list