Page 1 of 1

(Thunar) Open Current Folder in Terminal Using a Keyboard Shortcut

Posted: Sat May 11, 2019 1:34 am
by Shadow in Fire
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):

Code: Select all

mousepad ~/.config/Thunar/uca.xml
2. Find the unique-id variable of Terminals. Here's an example:

Code: Select all

<unique-id>1486853177330099-1</unique-id>
3. With that variable memorized, close the file. Without exiting the terminal, paste the following:

Code: Select all

mousepad ~/.config/Thunar/accels.scm
4. Look for our example 1486853177330099-1 variable that we are trying to assign a keyboard shortcut to. Here's an example:

Code: Select all

; (gtk_accel_path "<Actions>/ThunarActions/uca-action-1486853177330099-1" "")
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:

Code: Select all

; (gtk_accel_path "<Actions>/ThunarActions/uca-action-1486853177330099-1" "<Alt>t")
6. You can change it to something else or accept it. Once you're ready to apply the changes, uncomment the first semicolon:

Code: Select all

 (gtk_accel_path "<Actions>/ThunarActions/uca-action-1486853177330099-1" "<Alt>t")
7. Log out to apply changes. Once you log in, test this keyboard shortcut while browsing a folder. It SHOULD work by now. Congrats!

Re: (Thunar) Open Current Folder in Terminal Using a Keyboard Shortcut

Posted: Sat May 11, 2019 2:47 am
by catweazel
Shadow in Fire wrote: Sat May 11, 2019 1:34 am This method should work on any DE, although
Although it won't.

Re: (Thunar) Open Current Folder in Terminal Using a Keyboard Shortcut

Posted: Sat May 11, 2019 10:21 pm
by Shadow in Fire
Nice shitpost. Care to at least explain your point?

Re: (Thunar) Open Current Folder in Terminal Using a Keyboard Shortcut

Posted: Sat May 11, 2019 10:28 pm
by catweazel
Shadow in Fire wrote: Sat May 11, 2019 10:21 pm Nice shitpost. Care to at least explain your point?
It's self explanatory. What word in particular are you struggling with?

Re: (Thunar) Open Current Folder in Terminal Using a Keyboard Shortcut

Posted: Sat May 11, 2019 11:30 pm
by Shadow in Fire
Well, I find your tone to be snide, and first impressions are everything. You don't offer constructive criticism, yet you are here in my thread to waste my time, so I will be putting you on ignore. I'll never have to read a single ounce of nonsense you write ever again.

People like you are seriously garbage and part of the reason why I don't bother with forums anymore.