Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 20 May 2019, 00:46
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Changing the shorcut key for Rox's 'Terminal here' option
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [36 Posts]   Goto page: 1, 2, 3 Next
Author Message
GustavoYz


Joined: 07 Jul 2010
Posts: 894
Location: .ar

PostPosted: Fri 18 Mar 2011, 01:59    Post subject:  Changing the shorcut key for Rox's 'Terminal here' option
Subject description: Its possible to change it? (Solved)
 

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 Sun 20 Mar 2011, 23:51; edited 1 time in total
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6933
Location: Auckland, New Zealand

PostPosted: Fri 18 Mar 2011, 02:38    Post subject:  

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
Back to top
View user's profile Send private message 
GustavoYz


Joined: 07 Jul 2010
Posts: 894
Location: .ar

PostPosted: Fri 18 Mar 2011, 02:53    Post subject:  

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

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

_________________

Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6933
Location: Auckland, New Zealand

PostPosted: Fri 18 Mar 2011, 20:49    Post subject:  

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:
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
Back to top
View user's profile Send private message 
GustavoYz


Joined: 07 Jul 2010
Posts: 894
Location: .ar

PostPosted: Sat 19 Mar 2011, 00:13    Post subject:  

Will test it tomorrow and let you know what happens...
Thanks!

_________________


Last edited by GustavoYz on Sun 20 Mar 2011, 23:57; edited 1 time in total
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6933
Location: Auckland, New Zealand

PostPosted: Sat 19 Mar 2011, 00:28    Post subject:  

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
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3217

PostPosted: Sat 19 Mar 2011, 02:21    Post subject:  

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

 <Key mask="CA" key="t">exec:xterm -bg black -fg white</Key>
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6933
Location: Auckland, New Zealand

PostPosted: Sat 19 Mar 2011, 02:30    Post subject:  

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
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 13222
Location: Arizona USA

PostPosted: Sat 19 Mar 2011, 11:32    Post subject:  

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.
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3217

PostPosted: Sat 19 Mar 2011, 11:52    Post subject:  

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.
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3217

PostPosted: Sat 19 Mar 2011, 13:09    Post subject:  

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:

 spot:x:502:502:Linux User,,,:/mnt/sda2/Desktop:/bin/bash
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6933
Location: Auckland, New Zealand

PostPosted: Sat 19 Mar 2011, 18:41    Post subject:  

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
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3217

PostPosted: Sat 19 Mar 2011, 20:05    Post subject:  

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.
Back to top
View user's profile Send private message 
GustavoYz


Joined: 07 Jul 2010
Posts: 894
Location: .ar

PostPosted: Sun 20 Mar 2011, 23:50    Post subject:  

@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.
Works.jpg
 Description   
 Filesize   20.16 KB
 Viewed   1153 Time(s)

Works.jpg


_________________

Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3217

PostPosted: Mon 21 Mar 2011, 01:23    Post subject:  

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:

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

include "/root/.gtkrc.mine"

# -- THEME AUTO-WRITTEN DO NOT EDIT
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 3 [36 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0459s ][ Queries: 12 (0.0116s) ][ GZIP on ]