Reference

XkbGetIndicatorState(3) on Linux

The text 8ec38e5d4243, as Debian 11 (Bullseye) shipped it.

Obtains the current state of the keyboard indicators

XkbGetIndicatorState(3) on Linux now