lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Sat, Jan 14, 2012 at 10:31 PM, Matthew Frazier <> wrote:
On Jan 14, 2012, at 16:14 , Ralf Van Bogaert wrote:
> Hello,
> Thank you for your reply! I meant global keyboard shortcuts though - sorry, I should have made that more clear.

There is simply no way to do that portably. For each system you want to support, you'll need to dive into their manuals and find out how to add the shortcuts to the user's preferences. If the solution involves updating configuration files or running a system command, you can actually do that in pure Lua - you just need to find out what command to run, or what file to modify.

What exactly do you plan to use the global keyboard shortcuts for?

> Regards
> Ralf

Matthew Frazier

Fairly basic stuff such as toggle the main window with a hotkey, and use the media keys (next, previous, play, stop, pause etc) to control media playback. I know functionality like this is not going to be portable between operating systems, but I intend to support Linux only anyway (for now), so I think the lowest common denominator there would be to use X11. Reading the manuals but not having much success for now. Another way would be to install a global shortcut key in the KDE applet.