I've seen plenty of projects describing how to shut down rpi with a push button connected to a GPIO pin and running a python script to catch the button push. I thought why not setting up a keyboard combo for shutdown or other stuff? If I can do that under GUI, I can replace the real keyboard with an arduino leonardo or micro that can emulate keyboard. I still want a push button on the enclosure but I want this to be emulating keyboard combos. It just sounds clean and I can set up more key combos with the same arduino for other tasks. I know that windows has this feature to link key combos to certain tasks. What about raspbian? Thanks.
Arduino data loggers, user interface, printed circuit board designer since 2009, RPI 3B 2B 2B Zero Jessie, assembly/C/C++/java/python programmer since the 80's