With XBindkeys (already included with Rune)
For less than $4, this remote set was detected and can be used as a keyboard and a mouse.
- - Use as a mouse in RuneUI: edit use_cursor no to yes in /root/.xinitrc
- Use as a keyboard to select an OS in NOOBS boot menu.
- Use in Kodi without any settings. (no more CEC hassels)

The following code assigns 6 keys:
- <left> = previous track
<enter> = play / pause
<right> = next track
<up> = forward (@10s)
<down> = reverse (@10s)
<backspace> = stop
- - Not includes keys that not working.
- <red>
<skipback>
<skipnext>
<play/pause>
<mute>
<vol->
<vol+>
<switchwindow>
<windows>
If you want a customizable remote, you need this: [edited to mean not this remote]
JP1 Remote - The ultimate solution of a remote
It's like Raspberry Pi of ir remote world.
- Code: Select all
# /root/.xbindkeysrc
# for USB PC Remote (ID 1d57:ad02 Xenta SE340D PC Remote Control)
####################################################################
# buttons from left to right
# <email>
#"command"
# m:0x0 + c:163
#<www>
#"command"
# m:0x0 + c:180
#<close>
#"command"
# m:0x8 + c:64 + m:0x0 + c:70
# <green> *** works once > locks all buttons | press <amber> to unlock
#"command"
# m:0xc + c:38
# <amber>
#"command"
# m:0xc + c:56
# <blue> *** works once > locks all buttons | press <amber> to unlock
#"command"
# m:0xc + c:54
# <yellow> *** works once > locks all buttons | press <amber> to unlock
#"command"
# m:0xc + c:40
# <rewind>
#"command"
# m:0x0 + c:248
# <forward>
#"command"
# m:0x0 + c:248
# <stop>
#"command"
# m:0x0 + c:174
# <fullscreen>
#"command"
# m:0x4 + c:37 + m:0x0 + c:12
# <tab>
#"command"
# m:0x0 + c:23
### Forward <up>
"mpc seek +00:00:10"
m:0x0 + c:111
### Stop <backspace>
"mpc stop"
m:0x0 + c:22
### Previous <left>
"mpc prev"
m:0x0 + c:113
### Play / Pause <enter>
"mpc toggle"
m:0x0 + c:36
### Next <right>
"mpc next"
m:0x0 + c:114
# <pageup>
#"command"
# m:0x0 + c:112
# <folder>
#"command"
# m:0x4 + c:37 + m:0x0 + c:32
### Rewind <down>
"mpc seek -00:00:10"
m:0x0 + c:116
# <esc>
#"command"
# m:0x0 + c:9
# <pagedown>
#"command"
# m:0x0 + c:117
# <numlock>
# !!! avoid pressing / using !!!
# toggles between <navigate> / <alpha-numeric> buttons (gray background)
# (navigate -> alpha-numeric -> uppercase -> alpha-numeric -> navigate)
# <mypc>
#"command"
# m:0x40 + c:133 + m:0x0 + c:26
# <desktop>
#"command"
# m:0x40 + c:133 + m:0x0 + c:40