LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-02-2006, 11:39 AM   #1
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,191

Rep: Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815
Gnome keyboard shortcuts


I wanted to use the extra buttons and "flag" keys on my Logitech keyboard, and I successfully wrote a script to run at bootup which used xmodmap to define them as F13-F23.
The problem is with assigning activities to them. I tried the menu item System-Preferences-Keyboard shortcuts and also Metacity from Gnome Configuration. These both work (provided you don't define the same thing with both) but only when they are first set up. After a re-boot, Gnome has forgotten the assignments even though they are still listed as in force.
Has anyone else experienced this and found a solution?
I'm using Gnome 2.14.0 and Fedora Core 5.
 
Old 08-03-2006, 11:14 AM   #2
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Xbindkeys works very nicely for me with Gnome.

It's odd that Gnome "forgets" the keybindings after a reboot - for some things (like changing volume, which Gnome knows about), I found it easier to bind the keys using the "Keyboard Shortcuts" applet and they stay put once they're set.
 
Old 01-24-2008, 06:19 AM   #3
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 3,191

Original Poster
Rep: Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815Reputation: 815
If anyone comes to this query with the same question, here is the definitive answer!

Gnome sets itself up, including the keyboard shortcuts, before running the user's start-up scripts. In other words, it can't follow the instruction to use F20 to launch Firefox because it doesn't know that such a key exists until it's run the script.

The idea that the extra keys need naming (e.g. as F13 &c), which I got from a previous post, is wrong. Just pressing the key will insert its scan code into the shortcut: e.g. key 230 is automatically entered as 0xe6.

For using xbindkeys to launch a program from a keypress when the desktop doesn't include that option, the same key would be called c:230. e.g.

"openoffice.org-2.0 -writer"
c:230
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnome Keyboard Shortcuts problem GaWin Ubuntu 2 07-29-2005 05:39 AM
Is it possible to assign keyboard shortcuts in GNOME apps? kornerr Linux - General 0 02-09-2005 10:39 AM
Assigning Keyboard Shortcuts in Gnome RemusX2 Linux - General 0 07-13-2004 03:44 AM
Binding Programs with keyboard shortcuts in GNOME (fedora) pymehta Linux - Newbie 1 01-24-2004 02:17 PM
Custom Keyboard Shortcuts in Gnome mvanadel Linux - General 5 09-28-2003 01:20 PM


All times are GMT -5. The time now is 07:26 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration