Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


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.