This script reads the state of the Caps Lock key and sends it to an Arduino connected to a serial port. The Arduino then controls an LED to indicate the state of the Caps Lock key.
The script can be run multiple times, but only one instance will be running at a time. If another instance is started, it will send a message to the running instance to update the state of the Caps Lock key.
If you use Hyprland, paste this into your config file: