02-14-2012, 11:39 AM
I finally worked out a way to map media keys to control Nightingale. Since the Songbird media-key plugins have not been ported yet, this is a workaround. Install the "Command Line Support" add-on. Then, using the command line, try
to play/pause Nightingale. Caveat: every time I run this, I get "Segmentation fault" returned, but it does seem to work.
In Ubuntu 11.10, to map this to a key, go to System Settings > Keyboard > Shortcuts, then click on Custom Shortcuts, and +. Name it whatever you like, and use the same command as above. Map the key to your media key, or whatever you like! The only (other) problem is that Ubuntu might complain that the media key is mapped to something else, so you have to disable the normal function of that key. It's not a problem for me, as I only use that key for my music player, but I guess it might be an issue if you want media keys to continue controlling your video player, etc.
Code:
/path/to/applications/nightingale/nightingale -pause
In Ubuntu 11.10, to map this to a key, go to System Settings > Keyboard > Shortcuts, then click on Custom Shortcuts, and +. Name it whatever you like, and use the same command as above. Map the key to your media key, or whatever you like! The only (other) problem is that Ubuntu might complain that the media key is mapped to something else, so you have to disable the normal function of that key. It's not a problem for me, as I only use that key for my music player, but I guess it might be an issue if you want media keys to continue controlling your video player, etc.