Software - Support > Tutorials

Adding keyboard shortcuts for Thunar custom actions

(1/1)

anon222:
1. First open the Thunar file manager, select a folder or a file and try to use a keyboard key combination.
This way you will make sure it doesn't conflict with any other keyboard shortcut.
2. Open this folder ~/.config/Thunar
There you'll see two files
accels.scm
uca.xml
3. Make a backup of these two files, Right-click > Create backup copy
4. Open both files with Leafpad and move the windows so you can see both file contents.
5. In the file uca.xml you will find all the info (name and unique-id).
In this file you will se this
<action>
   <icon>utilities-terminal</icon>
   <name>Open Terminal Here</name>
   <unique-id>1399556281403860-1</unique-id>
   <command>x-terminal-emulator -t &quot;Command Line&quot;</command>
   <description>Open Terminal Here</description>
   <patterns>*</patterns>
   <startup-notify/>
   <directories/>
</action>
Find the Thunar custom action name For example Open Terminal Here.
Look for unique-id in this example 1399556281403860-1, but you might have a different value.
6. In the file accels.scm search for that id
You will find the id in this line:

--- Code: ---; (gtk_accel_path "<Actions>/ThunarActions/uca-action-1399556281403860-1" "")
--- End code ---
uca means it's a custom action.
Change it to something like this:

--- Code: ---(gtk_accel_path "<Actions>/ThunarActions/uca-action-1399556281403860-1" "<Alt>t")
--- End code ---
Note that you have to uncoment ';'
More usefull info:
<Primary> is Ctrl
<Alt>
<Shift>
F keys F1, F2...
7. Save the file and log out and back in.
Another example:

Navigation

[0] Message Index

Go to full version