Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| xfce:thunar:custom-actions [2020/10/15 00:33] – [Create a symbolic link] alexxcons | xfce:thunar:custom-actions [2025/06/16 11:26] (current) – [Create Shared Thumbnails] alexxcons | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ~~NOTOC~~ | ~~NOTOC~~ | ||
| - | {{ :xfce:thunar: | + | {{ : |
| - | ====== | + | ====== |
| Thunar allows users to add custom actions to the file and folder context menus (by the use of the '' | Thunar allows users to add custom actions to the file and folder context menus (by the use of the '' | ||
| Line 20: | Line 20: | ||
| * **[[#Edit file as root|Edit file as root]]** | * **[[#Edit file as root|Edit file as root]]** | ||
| * **[[#Create a symbolic link|Create a symbolic link]]** | * **[[#Create a symbolic link|Create a symbolic link]]** | ||
| + | * **[[#Create a hardlink|Create a hardlink]]** | ||
| * **[[#View disk usage of the current directory|View disk usage of the current directory]]** | * **[[#View disk usage of the current directory|View disk usage of the current directory]]** | ||
| * **[[#Open file in terminal text editor|Open file in terminal text editor]]** | * **[[#Open file in terminal text editor|Open file in terminal text editor]]** | ||
| * **[[# | * **[[# | ||
| * **[[#Change OpenDocument-supported formats|Change OpenDocument-supported formats]]** | * **[[#Change OpenDocument-supported formats|Change OpenDocument-supported formats]]** | ||
| - | * **[[# | + | * **[[# |
| * **[[#Rename subtitles easily|Rename subtitles easily]]** | * **[[#Rename subtitles easily|Rename subtitles easily]]** | ||
| * **[[#Move files into a new folder|Move files into a new folder]]** | * **[[#Move files into a new folder|Move files into a new folder]]** | ||
| + | * **[[#Create Shared Thumbnails|Create Shared Thumbnails]]** | ||
| + | * **[[#Use 'bulk rename' | ||
| + | * **[[#Trust multiple desktop files at once|Trust multiple desktop files at once]]** | ||
| * **[[https:// | * **[[https:// | ||
| Line 33: | Line 37: | ||
| ===== Adding a Custom Action ===== | ===== Adding a Custom Action ===== | ||
| - | This section provides a step-by-step introduction to the **Custom Actions** plugin, demonstrating how to add a **Print File** | + | This section provides a step-by-step introduction to the **Custom Actions** plugin, demonstrating how to add a simple |
| - | <figure " | + | <figure " |
| - | {{: | + | {{: |
| </ | </ | ||
| - | On the first page, enter '' | + | On the first page, enter '' |
| - | r | + | |
| + | Optionally, you can specify a {gui> | ||
| < | < | ||
| Line 63: | Line 69: | ||
| Now close the **Custom Actions** dialog, select a folder in Thunar and open the context menu (right-click on the file icon). The newly created **Search with Catfish** action will appear in the context menu, as shown in the screenshot below. | Now close the **Custom Actions** dialog, select a folder in Thunar and open the context menu (right-click on the file icon). The newly created **Search with Catfish** action will appear in the context menu, as shown in the screenshot below. | ||
| - | <figure " | + | <figure " |
| - | {{: | + | {{: |
| </ | </ | ||
| Line 106: | Line 112: | ||
| * Appears if selection contains: Directories | * Appears if selection contains: Directories | ||
| - | **Hint:** You may prefer the [[http://thunar.xfce.org/plugins.html# | + | **Hint:** You may prefer the [[https://docs.xfce.org/xfce/thunar/archive|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 [[https:// |
| ---- | ---- | ||
| Line 137: | Line 143: | ||
| ==== Rotate JPEGs ==== | ==== Rotate JPEGs ==== | ||
| * Name: **Rotate Clockwise** | * Name: **Rotate Clockwise** | ||
| - | * Command: ''< | + | |
| + | | ||
| + | * Command(counterclockwise): | ||
| * File pattern: *.jpg; | * File pattern: *.jpg; | ||
| * Appears if selection contains: JPEG Image Files | * Appears if selection contains: JPEG Image Files | ||
| - | **Note: | + | **Note: |
| - | + | ||
| - | [[https:// | + | |
| ---- | ---- | ||
| ==== Open terminal here ==== | ==== Open terminal here ==== | ||
| + | |||
| * Name: **Open terminal here** | * Name: **Open terminal here** | ||
| - | * Command: ''< | + | * Command |
| + | * Command 2: ''< | ||
| * File pattern: * | * File pattern: * | ||
| * Appears if selection contains: any | * Appears if selection contains: any | ||
| - | **Note:** If non-directory files are selected, a terminal in the current directory | + | '' |
| - | **Note:** For each selected folder, | + | |
| + | '' | ||
| ---- | ---- | ||
| ==== Open root terminal here ==== | ==== Open root terminal here ==== | ||
| * Name: **Open root terminal here** | * Name: **Open root terminal here** | ||
| - | * Command: ''< | + | * Command(1): ''< |
| + | * Command(2): ''< | ||
| * File pattern: * | * File pattern: * | ||
| * Appears if selection contains: Directories | * Appears if selection contains: Directories | ||
| + | |||
| + | **Note:** Use either pkexec or gksu, depending on what is available for your distro. | ||
| **Note:** You should rewrite the command with normal straight quotes. | **Note:** You should rewrite the command with normal straight quotes. | ||
| Line 169: | Line 179: | ||
| ==== Open thunar as root here ==== | ==== Open thunar as root here ==== | ||
| * Name: **Open thunar as root here** | * Name: **Open thunar as root here** | ||
| - | * Command: '' | + | * Command(1): '' |
| + | * Command(2): '' | ||
| + | * Command(3): '' | ||
| * File pattern: * | * File pattern: * | ||
| * Appears if selection contains: Directories | * Appears if selection contains: Directories | ||
| - | **Note:** Some distributions no longer include '' | + | **Note:** Some distributions no longer include '' |
| ---- | ---- | ||
| ==== Edit file as root ==== | ==== Edit file as root ==== | ||
| * Name: **Edit as root** | * Name: **Edit as root** | ||
| - | * Command: '' | + | * Command(1): '' |
| + | * Command(2): '' | ||
| * File pattern: * | * File pattern: * | ||
| * Appears if selection contains: Text files | * Appears if selection contains: Text files | ||
| Line 187: | Line 200: | ||
| ==== Create a symbolic link ==== | ==== Create a symbolic link ==== | ||
| * Name: **Create symlink** | * Name: **Create symlink** | ||
| - | * Command: ''< | + | * Command: ''< |
| * File pattern: * | * File pattern: * | ||
| * Appears if selection contains: Directories, | * Appears if selection contains: Directories, | ||
| Line 214: | Line 227: | ||
| * File pattern: * | * File pattern: * | ||
| * Appearance Conditions: Text files | * Appearance Conditions: Text files | ||
| + | |||
| ---- | ---- | ||
| Line 243: | Line 257: | ||
| ---- | ---- | ||
| - | ==== Download subtitles | + | ==== Download |
| * Name: **Download subtitles** | * Name: **Download subtitles** | ||
| - | * Command: ''< | + | * Command: ''< |
| * File pattern: * | * File pattern: * | ||
| * Appears if selection contains: Video Files | * Appears if selection contains: Video Files | ||
| - | **Note:** You will need '' | + | **Note:** You will need to follow the instructions on [[https://github.com/emericg/OpenSubtitlesDownload|OpenSubtitlesDownload]] which requires |
| ---- | ---- | ||
| Line 274: | Line 288: | ||
| ---- | ---- | ||
| + | |||
| + | ==== Create Shared Thumbnails ==== | ||
| + | * Name: **Create shared thumbnails** | ||
| + | * Description: | ||
| + | * Command: ''< | ||
| + | * File pattern: * | ||
| + | * Appears if selection contains: Folders | ||
| + | |||
| + | **Note:** Required to download a thumbnail generation script. Candidates are: | ||
| + | |||
| + | * {{ : | ||
| + | |||
| + | |||
| + | <note important> | ||
| + | ---- | ||
| + | ==== Use 'bulk rename' | ||
| + | * Name: **Open in bulk renamer** | ||
| + | * Description: | ||
| + | * Command: ''< | ||
| + | * File pattern: * | ||
| + | * Appears if selection contains: any | ||
| + | * Range: 1-1 | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Trust multiple desktop files at once ==== | ||
| + | * Name: **Trust Desktop Files** | ||
| + | * Description: | ||
| + | * Command: ''< | ||
| + | * File pattern: *.desktop | ||
| + | * Appears if selection contains: other files | ||
| + | * Range: 1-1 | ||
| [[|Back To Top]] | [[|Back To Top]] | ||
| ---- | ---- | ||
| - | [[: | + | [[: |