You are Here:
Download Linux Lite 5.6 Final today - See Release Announcements



X Close Ad
X Close Ad
Adding keyboard shortcuts for Thunar custom actions

Author (Read 7947 times)

0 Members and 1 Guest are viewing this topic.

Adding keyboard shortcuts for Thunar custom actions
« on: August 23, 2014, 07:28:30 AM »
 

misko_2083

  • Gold Level Poster
  • *******
  • 687
    Posts
  • Reputation: 191
  • Linux Lite Member

  • CPU: Dual core Pentium E5700 3GHz

  • MEMORY: 3Gb

  • VIDEO CARD: GeForce GT 430
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: [Select]
; (gtk_accel_path "<Actions>/ThunarActions/uca-action-1399556281403860-1" "")uca means it's a custom action.
Change it to something like this:
Code: [Select]
(gtk_accel_path "<Actions>/ThunarActions/uca-action-1399556281403860-1" "<Alt>t")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:
 


Tags:
 

X Close Ad
X Close Ad

Download Linux Lite 5.6 Final today - See Release Announcements