Register hotkeys in Linux using library for c++ -


Is there a library for writing Linux in C ++ that can register global hotkeys for my application ? Thank you.

You have to provide more information.

In the genome, the global functionality is changed by the window manager, MetaCity global shortcuts are configurable, like compiz and softfish, and they are all configured differently. Can be used for the same functionality, however, all are limited to launching applications only.

Within the KDE application framework, you can register global shortcuts that perform actions within your program. They are actually controlled by a module (launched on demand), so they also work outside the KDE desktop environment.

If you do not use the KDE framework, but still using X11, you can use the xlib API to call the root window.

For shortcuts that work outside the X, as long as you are running in root (or permissions have been changed with permission) on the 2.6 kernel, you can open directly and for the desired key events. vote.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -