Google Answers Logo
View Question
 
Q: Own shortcuts in Gnome 2 ( Answered 5 out of 5 stars,   0 Comments )
Question  
Subject: Own shortcuts in Gnome 2
Category: Computers > Operating Systems
Asked by: flashz-ga
List Price: $10.00
Posted: 15 Aug 2005 14:11 PDT
Expires: 14 Sep 2005 14:11 PDT
Question ID: 556077
Hi!

I would like to be able to add my own shortcuts in Gnome (latest
version, running Debian testing). This is not what I can do now in the
"Keyboard Shortcuts" application, in that I can only add shortcuts to
the pre-defined things. I want to be able to set that for example
"Alt-Ctrl-U" starts Eterm with different arguments. How is this
possible ?
Answer  
Subject: Re: Own shortcuts in Gnome 2
Answered By: wildeeo-ga on 15 Aug 2005 18:44 PDT
Rated:5 out of 5 stars
 
Hi flashz. Thanks for your question.

Gnome doesn't have a nice interface for adding shortcuts (unlike KDE;
with KDE you can create them in Control Centre -> Regional &
Accessibility ->Keyboard
Shortcuts). Gnome does, however, have the ability to create custom hot
keys, but to do so you need to directly edit the settings using
gconf-editor.

The procedure is described on
http://gnome-hacks.jodrell.net/hacks.html?id=14. To set up the command
you gave as an example, you'd need to do something like this:

1. Start gconf-editor. You can do this by choosing 'Run Application',
typing in 'gconf-editor', and pressing 'Run'.

2. Expand 'apps' -> 'Metacity' and select 'keybinding_commands'.

3. In the top right pane of the window, double-click on 'command_1'
and enter the command you want to run ('eterm --your --options', for
example).

4. From the left list, select 'global_keybindings'.

5. Double-click on 'run_command_1' in the top right pane. Type in the
key combination you want to use with 'special' keys enclosed in < >
brackets ('<Control><Alt>u', for example).

The key combination should then work.

You can define additional commands by editing command_2 and
run_command_2, command_3 and run_command_2, and so on.

If you have any questions, feel free to ask for a clarification.

--wildeeo

Request for Answer Clarification by flashz-ga on 16 Aug 2005 02:13 PDT
If I would like to add more than the 12 commands already "defined"
(command_1 to command_12) would that be possible ?

/S

Clarification of Answer by wildeeo-ga on 17 Aug 2005 11:33 PDT
Hi,

Yep, that's possible, you can apparently define up to 32 commands this
way. You would need to create an additional command (by right clicking
on the top right pane with 'keybinding_commands' selected and choosing
'New Key...') and giving it a name like 'command_13', and create an
additional keybinding, by creating a new key in 'global_keybindings'
with a corresponding name ('run_command_13', for example).
flashz-ga rated this answer:5 out of 5 stars and gave an additional tip of: $2.00
Perfect answer, also terrific followup on my RFC. Thanks!

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy