Xfce Wiki

Sub domains
 

Differences

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

Link to this comparison view

apps:xfce4-screenshooter:4.22:custom-actions [2026/11/23 10:05] – created epetrigliaapps:xfce4-screenshooter:4.22:custom-actions [2026/12/01 00:17] (current) – formatting & grammar improvements kevinbowen
Line 1: Line 1:
 ~~NOTOC~~ ~~NOTOC~~
 {{ :apps:xfce4-screenshooter.png?nolink|}} {{ :apps:xfce4-screenshooter.png?nolink|}}
-====== xfce4-screenshooter - Custom Actions ======+====== xfce4-screenshooter - Screenshot Custom Actions ======
  
-Custom actions let you process a screenshot with any program or script right after it is captured: for example to edit it, extract its text, read a QR code or upload it to an online service. Once configured, they appear in the window shown after capturing (see [[:apps:xfce4-screenshooter:4.22:usage#after_capturing|After capturing]]): select {gui>Custom Action}, choose the action from the drop-down list and confirm. The screenshot is saved to the system's temporary directory and passed to the command.+Custom actions allow for processing a screenshot with any program or script immediately after the image is captured. Some example actions are: editing an image, extracting an image's text with Optical Character Recognition(OCR), reading a QR code or uploading an image to an online service. Once configured, they appear in the window shown after capturing (see [[:apps:xfce4-screenshooter:usage#after_capturing|After capturing]]): select {gui>Custom Action}, choose the action from the drop-down list and confirm. The screenshot is saved to the system's temporary directory and passed to the command.
  
-Custom actions are available both in the application and in the [[:apps:xfce4-screenshooter:4.22:panel-plugin|panel plugin]].+Custom actions are available both in the application and in the [[:apps:xfce4-screenshooter:panel-plugin|Screenshot Panel Plugin]].
  
-  * **[[#Adding custom actions|Adding custom actions]]** +  * **[[#Adding Custom Actions|Adding Custom Actions]]** 
-  * **[[#How commands are executed|How commands are executed]]** +  * **[[#How Commands are Executed|How Commands are Executed]]** 
-  * **[[#Examples|Examples]]** +  * **[[#Custom Action Examples|Custom Action Examples]]** 
-    * **[[#Extract text with OCR|Extract text with OCR]]**+    * **[[#Extract Text with OCR|Extract Text with OCR]]**
     * **[[#Read QR Code|Read QR Code]]**     * **[[#Read QR Code|Read QR Code]]**
     * **[[#Hosting on Imgur™|Hosting on Imgur™]]**     * **[[#Hosting on Imgur™|Hosting on Imgur™]]**
Line 16: Line 16:
 ---- ----
  
-===== Adding custom actions =====+===== Adding Custom Actions =====
  
 Custom actions are added, removed and edited in the {gui>Preferences} dialog, which can be opened with the {gui>Preferences} button of the main window or of the panel plugin's properties dialog. Custom actions are added, removed and edited in the {gui>Preferences} dialog, which can be opened with the {gui>Preferences} button of the main window or of the panel plugin's properties dialog.
Line 37: Line 37:
 ---- ----
  
-===== How commands are executed =====+===== How Commands are Executed =====
  
   * ''%f'' is replaced with the full path of the screenshot, already quoted, so file names containing spaces are handled correctly. Do not add quotes around ''%f'' yourself.   * ''%f'' is replaced with the full path of the screenshot, already quoted, so file names containing spaces are handled correctly. Do not add quotes around ''%f'' yourself.
Line 49: Line 49:
 ---- ----
  
-===== Examples =====+===== Custom Action Examples =====
  
 The following examples assume the necessary dependencies are already installed. The clipboard examples use ''xclip'', which works on X11, on Wayland replace ''xclip -selection clipboard'' with ''wl-copy''. The following examples assume the necessary dependencies are already installed. The clipboard examples use ''xclip'', which works on X11, on Wayland replace ''xclip -selection clipboard'' with ''wl-copy''.
  
-==== Extract text with OCR ====+==== Extract Text with OCR ====
  
 Set as command: ''gimagereader-gtk %f'' Set as command: ''gimagereader-gtk %f''