Raspberry Pi 4: Shutdown and Reboot Keyboard Shortcut
This video will show how to create a keyboard shortcut to shutdown and reboot raspberry pi running in desktop mode (LXDE GUI).
+++++++++++++++++++++++++++++++++++
Steps:
SHUTDOWN/REBOOT KEYBOARD SHORCUT ON RASPBERRY OS/ RASPBIAN
Step 1: On Pi Desktop, Open a terminal.
Step 2: Backup and Edit /etc/xdg/openbox/lxde-pi-rc.xml file.
sudo cp -p /etc/xdg/openbox/lxde-pi-rc.xml /etc/xdg/openbox/lxde-pi-rc.xml.bkp
sudo vi /etc/xdg/openbox/lxde-pi-rc.xml
Step 3: Scroll down to the keybind section
Step 4. Create a comment such as My SHUTDOWN/REBOOT SHORCUTS
under the chainQuitKey
Step 5: Enter your preferred keybind code
6. Save the file and reboot. Done.
Your keyboard shorcute should now work after the reboot.
#Raspberry Pi Shutdown Keyboard Shortcut