Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is it possible to add keyboard shortcuts to thunars custom actions?
I tried setting the key with mouse-over (the needed option is set in xfce settings) but that do not work for me.

share|improve this question
    

1 Answer 1

Yes this is possible.

This is an example for the standard custom action "Open Terminal Here":

Open the file /home/username/.config/Thunar/accels.scm

than you have to search for:

;  (gtk_accel_path "<Actions>/ThunarActions/uca-action-1398672656481710-1" "")

uca stands for an custom action and the 1 at the end stands for the first action.

Change this line as follows ( Alt+t is only an example you can chose what you want ):

  (gtk_accel_path "<Actions>/ThunarActions/uca-action-1398672656481710-1" "<Alt>t")

enter image description here

be sure you have removed the ";" at the beginning, to uncomment the line!

To activate the shortcut logout:

xfce4-session-logout --logout

and log in again.

Open Thunar, press Alt+t this should be open the "Open Terminal Here" action.

Edit 1: The pagination of the custom action are not always in a logical order. To find the right ID (unique-id) you can look into the /home/username/.config/Thunar/uca.xml file:

enter image description here

Edit 2: Sometimes the shortcuts stops working for me, for example if an confirmation box from Thunar pops up. The consequence is that the focus from the Thunar window are lost. In order to get it back to work you have to make a right click in the Thunar window.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.