Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.