(Thunar) Open Current Folder in Terminal Using a Keyboard Shortcut
Posted: Sat May 11, 2019 1:34 am
This method should work on any DE, although I personally tested this using Xfce. Since the GUI method didn't work, you'd need to edit a file containing this data for the changes to be in effect.
1. Open your terminal and paste the following (you can use any text editor that you wish):
2. Find the unique-id variable of Terminals. Here's an example:
3. With that variable memorized, close the file. Without exiting the terminal, paste the following:
4. Look for our example 1486853177330099-1 variable that we are trying to assign a keyboard shortcut to. Here's an example:
5. The last two quotation marks should be where you can insert your preferred keyboard shortcut. For example, let's say you just want Alt combined with T to execute this command:
6. You can change it to something else or accept it. Once you're ready to apply the changes, uncomment the first semicolon:
7. Log out to apply changes. Once you log in, test this keyboard shortcut while browsing a folder. It SHOULD work by now. Congrats!
1. Open your terminal and paste the following (you can use any text editor that you wish):
Code: Select all
mousepad ~/.config/Thunar/uca.xml
Code: Select all
<unique-id>1486853177330099-1</unique-id>
Code: Select all
mousepad ~/.config/Thunar/accels.scm
Code: Select all
; (gtk_accel_path "<Actions>/ThunarActions/uca-action-1486853177330099-1" "")
Code: Select all
; (gtk_accel_path "<Actions>/ThunarActions/uca-action-1486853177330099-1" "<Alt>t")
Code: Select all
(gtk_accel_path "<Actions>/ThunarActions/uca-action-1486853177330099-1" "<Alt>t")