Changing the shorcut key for Rox's 'Terminal here' option

Using applications, configuring, problems
Message
Author
User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

Changing the shorcut key for Rox's 'Terminal here' option

#1 Post by GustavoYz »

I'd like to change the shorcut or keybinding -if its that the right word for that- to 'terminal here' option. Opening a directory in Rox, right click on an empty area to get a contextual menu, choosing 'Window > 'Terminal here' it opens the console on the dir path.
By default, the backquote "`" is the shortcut-key. The thing is that i'd like to change it and I don't know how to do it, or if its even possible.

Why?
On a spanish keymap, as far as I know, you have to press one key and then the Space to write a backquote. Thus, Rox wont open urxvt.

So...
How can I change it?
Last edited by GustavoYz on Mon 21 Mar 2011, 03:51, edited 1 time in total.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#2 Post by disciple »

Simply press the key that you want to use, while hovering your mouse over the "terminal here" option in the right-click menu.
There is a GTK setting that controls whether or not this works - let me know if it doesn't and I'll have a look for the setting.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#3 Post by GustavoYz »

Thanks, at least works in this way (doesn't knew that :D).

Now, let's take the 'Shell Command' by example: If I press Shift + 1 it works without the need of open the contextual menu...
I assume that the backquote its an 'only-one-key-symbol' on an english keymap (right?), but its not on a spanish one thus the shorcut its useless; that's the whole issue...

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#4 Post by disciple »

Sorry, I may not have been clear enough.
My explanation was for how to change the keyboard shortcut.

If it doesn't work, add this line to /root/.gtkrc.mine

Code: Select all

gtk-can-change-accels = 1
And check that /root/.gtkrc-2.0 says to include .gtkrc.mine

Rox probably won't notice the GTK setting change until it is restarted after all Rox instances have been closed - the easiest thing to do is probably to restart X.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#5 Post by GustavoYz »

Will test it tomorrow and let you know what happens...
Thanks!
Last edited by GustavoYz on Mon 21 Mar 2011, 03:57, edited 1 time in total.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#6 Post by disciple »

Please make a new post - if you edit the old one I probably won't see it, because I won't get a topic reply notification.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#7 Post by jpeps »

I like to use JWM keybindings (in /root/.jwm/.jwmrc-personal) , which are independent of ROX and allow you set the terminal colors:

Code: Select all

 <Key mask="CA" key="t">exec:xterm -bg black -fg white</Key>

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#8 Post by disciple »

The point of the Rox feature is that it opens the terminal in whatever directory Rox is currently displaying.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#9 Post by Flash »

disciple wrote:The point of the Rox feature is that it opens the terminal in whatever directory Rox is currently displaying.
And a very practical feature it is. I use it a lot.

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#10 Post by jpeps »

disciple wrote:The point of the Rox feature is that it opens the terminal in whatever directory Rox is currently displaying.
interesting...I wonder why mine doesn't. Mine opens to /mnt/sda2/Desktop regardless of what ROX window I'm in.

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#11 Post by jpeps »

jpeps wrote:
disciple wrote:The point of the Rox feature is that it opens the terminal in whatever directory Rox is currently displaying.
interesting...I wonder why mine doesn't. Mine opens to /mnt/sda2/Desktop regardless of what ROX window I'm in.
ROX defers to user home set in /etc/passwd

Code: Select all

 spot:x:502:502:Linux User,,,:/mnt/sda2/Desktop:/bin/bash

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#12 Post by disciple »

If that was the case mine should always open to /root, but it doesn't.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#13 Post by jpeps »

disciple wrote:If that was the case mine should always open to /root, but it doesn't.
It happens if you mount a user shell from .bashrc or /etc/profile.local.

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#14 Post by GustavoYz »

@disciple: Thanks!!! It works like a charm...

Here is what I did:
As I don't have a "/root/.gtkrc.mine" file, just add the line into /root/.gtkrc-2.0 right after the last line (which is a comment).
Then, I restart X -just in case- and made the test...
Success! While hovering the option, could grab a new key-shortcut (see the attached cap).

Thanks buddy.
Regards.
Attachments
Works.jpg
(20.16 KiB) Downloaded 1172 times

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#15 Post by jpeps »

GustavoYz wrote: Here is what I did:
As I don't have a "/root/.gtkrc.mine" file, just add the line into /root/.gtkrc-2.0 right after the last line (which is a comment).
Should already be there ??

Code: Select all

#gtk-font-name="DejaVu Sans 11"

include "/root/.gtkrc.mine"

# -- THEME AUTO-WRITTEN DO NOT EDIT

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#16 Post by GustavoYz »

You mean by default?

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#17 Post by jpeps »

GustavoYz wrote:You mean by default?
If it's the same .gtkrc-2.0 file that's in LUPU it is..also, it's auto-written, so doesn't get edited.

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#18 Post by GustavoYz »

jpeps wrote:
GustavoYz wrote:You mean by default?
If it's the same .gtkrc-2.0 file that's in LUPU it is..also, it's auto-written, so doesn't get edited.
No, the edited line its still there...
Everything works without issues. I'm using LuPu 520.

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#19 Post by jpeps »

GustavoYz wrote:
jpeps wrote:
GustavoYz wrote:You mean by default?
If it's the same .gtkrc-2.0 file that's in LUPU it is..also, it's auto-written, so doesn't get edited.
No, the edited line its still there...
Everything works without issues. I'm using LuPu 520.
I think you're missing the point. The line is already there, so doesn't need to be added. Also, comments in the file clearly tell you NOT to edit it.

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#20 Post by GustavoYz »

No, you're wrong: the line WASN'T there and I've to write it into the file.
The comment could say wherever it wants, this method works.

And yes, I was missing the point, because I've assume that your file was exactly equal that mine and you doesn't told me that yours its different. Mine doesn't include this line.

If you already knew the solution of this issue from the very begging, why don't you post it?

Post Reply