Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I'm trying to understand what is happening exactly when I setup and use custom shortcuts in say Gnome 2 (but any other desktop environment is fine). Gnome for instance ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2011
    Posts
    4

    Keyboard shortcuts underlying mechanism (in Gnome for instance)


    Hi,

    I'm trying to understand what is happening exactly when I setup and use custom shortcuts in say Gnome 2 (but any other desktop environment is fine).

    Gnome for instance offers this 'keyboard shortcuts' menu in which one can setup their own shortcuts. I have found programmatic ways to get/set those as well (gconftool-2), and they seem to essentially be wrappers around xml files.

    From that point on I'm unsure what's going on, what reads those files and how does the system acts upon them. Is it an x server thing? is it a kernel thing?

    I find plenty of doc about how to setup shorcuts but very little about how they actually work! Is there a programmatic way to manipulate such shortcuts (in C for instance), bypassing the gnome layer?

    Thanks,

    Anthony

  2. #2
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    1,281
    Gnome is built over the gtk widget library and that has ways of setting keyboard shortcuts under the label of "mnemonics". So it's probably done on that level. You can find a good gtk manual at https://developer.gnome.org/gtk3/3.0.
    "I'm just a little old lady; don't try to dazzle me with jargon!"
    www.hrussman.entadsl.com

  3. #3
    Just Joined!
    Join Date
    Oct 2011
    Posts
    4
    Thanks hazel, and sorry for the late reply! I am now considering xbindkeys rather, as it looks more portable. I wish I could find something that would work for any x server though, as xbindkeys doesn't seem to be available for mac!

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •