How to get an on-screen keyboard layer indicator?

I have a 34-key keyboard using two custom layers in its ZMK firmware. I have an idea of sending an F13 press with each layer toggle and making a Plasma widget beside the layout one in the system tray that toggles a simple binary visual indicator of each such press. Is there a better idea, any ready-made solution, if not, how hard would this be?