xkbwatch man page
xkbwatch — XKB extension user utility
This program reports changes in the fundamental components of the XKB keyboard state plus the effective compatibility state.
Xkbwatch accepts all of the standard X Toolkit command line options along with the additional options listed below:
This option indicates that the program version should be printed, after which the program exits.