Re: Registering/capturing shortcut keys in Linux?

new topic     » goto parent     » topic index » view thread      » older message » newer message

I think you guys are misunderstanding what I want to do. I do not want to capture keys from the console/terminal. I want to hook to keyboard shortcuts like Ctrl+Alt+1, Alt+P, Ctrl+G etc.. My program may or may not be run from a terminal, it can also be called by another program.

So the basic idea is that it runs in the background without any interface only listening for shortcut keys assigned to it. Something similar to XBindKeys but it is only capable of mapping commands to keys. I want to directly map my code to the shortcut keys so that I can perform some actions when a shortcut key is pressed.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu