So I did this using python and gpiozero (as RPi-GPIO doesn't work with the Pi 5)should be a way. just have your favorite language execute the bash script at /usr/bin/toggle-wvkbd.sh
for example, see this for how-to in python
https://www.geeksforgeeks.org/how-to-ru ... in-python/
Ted
Code:
#!/usr/bin/python3from gpiozero import Buttonimport osfrom signal import pause# Setup what to do when button is pressed.def toggle_osk():os.system("/usr/bin/toggle-wvkbd.sh")# Setup GPIO26 as input connected to GND and set a bouncetime to 20 ms so# that noisy switches won't trigger multiple times.btn = Button(26,bounce_time=0.02)# Monitor for button pressbtn.when_pressed = toggle_osk# The script would exit now but we want to wait for the event to occur# so we block execution by waiting.pause()
Any suggestions on how to get the keyboard to work in KIOSK mode (from https://www.raspberrypi.com/tutorials/h ... iosk-mode/ using Chromium to display a on LAN website)?
Statistics: Posted by Baenwort — Wed Dec 27, 2023 12:18 am