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

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
Post Reply
Shadow in Fire
Level 2
Level 2
Posts: 57
Joined: Fri Jul 20, 2018 1:18 am

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

Post 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!
User avatar
catweazel
Level 19
Level 19
Posts: 9884
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

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

Post 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.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
Shadow in Fire
Level 2
Level 2
Posts: 57
Joined: Fri Jul 20, 2018 1:18 am

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

Post by Shadow in Fire »

Nice shitpost. Care to at least explain your point?
User avatar
catweazel
Level 19
Level 19
Posts: 9884
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

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

Post 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?
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
Shadow in Fire
Level 2
Level 2
Posts: 57
Joined: Fri Jul 20, 2018 1:18 am

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

Post 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.
Post Reply

Return to “Tutorials”