Page 1 of 2

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

Posted: Fri 18 Mar 2011, 05:59
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?

Posted: Fri 18 Mar 2011, 06:38
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.

Posted: Fri 18 Mar 2011, 06:53
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...

Posted: Sat 19 Mar 2011, 00:49
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.

Posted: Sat 19 Mar 2011, 04:13
by GustavoYz
Will test it tomorrow and let you know what happens...
Thanks!

Posted: Sat 19 Mar 2011, 04:28
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.

Posted: Sat 19 Mar 2011, 06:21
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>

Posted: Sat 19 Mar 2011, 06:30
by disciple
The point of the Rox feature is that it opens the terminal in whatever directory Rox is currently displaying.

Posted: Sat 19 Mar 2011, 15:32
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.

Posted: Sat 19 Mar 2011, 15:52
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.

Posted: Sat 19 Mar 2011, 17:09
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

Posted: Sat 19 Mar 2011, 22:41
by disciple
If that was the case mine should always open to /root, but it doesn't.

Posted: Sun 20 Mar 2011, 00:05
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.

Posted: Mon 21 Mar 2011, 03:50
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.

Posted: Mon 21 Mar 2011, 05:23
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

Posted: Mon 21 Mar 2011, 05:31
by GustavoYz
You mean by default?

Posted: Mon 21 Mar 2011, 21:45
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.

Posted: Tue 22 Mar 2011, 04:08
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.

Posted: Tue 22 Mar 2011, 15:52
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.

Posted: Wed 23 Mar 2011, 04:03
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?