I've installed the packages required to use a wiimote as a remote control in Fedora, and am currently trying to write a config file to use the wiimote for Clementine.
My file currently looks like this:
Code:
# This is the wminput-clementine file
Wiimote.A = KEY_F6 #Play/Pause
Wiimote.B = KEY_F7 #Stop
Wiimote.Left = KEY_F5 #Skip back
Wiimote.Right = KEY_F8 #Skip forward
# Wiimote.Minus = KEY_XF86AudioLowerVolume #Lower volume
# Wiimote.Plus = KEY_XF86AudioRaiseVolume #Raise volume
# Wiimote.Home = KEY_XF86AudioMedia #Launch Clementine
# Wiimote.2 = KEY_CTRL+Q #Quit
The uncommented lines work successfully; however, the bottom four are causing me problems.
I have the following questions regarding this:
1) In Clementine, 'CTRL+Q' is used to quit the program - how would I map this to a button? (As the above throws an error)
2) The lines such as 'KEY_XF86AudioLowerVolume' refer to the hotkeys on my keyboard - I'm basically trying to assign those to the remote. I took those names from those given in Preferences/Keyboard Shortcuts, but they throw an error too ("syntax error, unexpected '\n', expecting BTN_ACTION"). How would I correct this?
3) I suspect it would be 'more correct' to map the home key to a 'launch Clementine' function, rather than to that specific hotkey function (as this would in future provide me with the means to launch any other program I wrote a config file for). How would I do this?
4) Not sure if this is actually possible or not, but... At present, the wiimote enters the commands in whichever window I have active (so if I press A while on the terminal, it enters F6 in the terminal). Is there a way to change this to what would effectively be "F6 in Clementine" instead? (So that I could be on another program and use the remote without having to switch back to the Clementine window)
Many thanks in advance!

---------- Several posts tidied up at 07:55 PM ---------- Previous post was at 07:39 PM ----------
Resolved the volume buttons:
Code:
# Wiimote.Minus = KEY_VOLUMEDOWN #Lower volume
# Wiimote.Plus = KEY_VOLUMEUP #Raise volume
Obvious when you know it
I've also managed to apply a part-fix to issue 1 in this post; by assigning KEY_LEFTCTRL to Wiimote.1 and KEY_Q to Wiimote.2, I can enter Ctrl+Q via the wiimote (1+2). Is there a means of apply 'Ctrl+Q' to one button, though?
Also, is there a way of assigning a terminal command (e.g. 'clementine' to launch Clementine, or 'killall clementine' to kill Clementine) to a wiimote button?