reTerminal front 4 buttons assign function

Apologies for such a simple question but I just can’t seem to figure this out. I’ve spent a lot of time going down a rabbit hole on how to assign functions to GPIO pins assuming that’s how these buttons work but I’ve gotten nowhere.

I’ve seen in the getting started wiki how to modify config.txt

Untimely I’m trying to change these keys so I can use one as a right click and another to start an app. Any help is appreciated even if it’s just pointing me in the right direction.

Never mind. Had a coffee and started fresh. Not sure why I over complicated it…

Edited /boot/config.txt to switch all four keys over to F1,F2,F3, and F4 using their V-Scan Code.

dtoverlay=reTerminal,key0=0x03b,key1=0x03c,key2=0x03d,key3=0x03e

Copied the config for lxde key binding to ~/pi/.config/openbox

sudo cp /etc/xdg/openbox/lxde-pi-rc.xml /home/pi/.config/lxde-pi-rc.xml

Under the keyboard section I added the binding of the F keys to the app I wanted to start

Repeat for all 4

2 Likes