Install cairo-dock-keyboard-indicator-plug-in by entering the following commands in the terminal:
sudo apt update sudo apt install cairo-dock-keyboard-indicator-plug-in
Keyboard indicator plug-in for Cairo-dock
A collection of official plug-ins and applets for cairo-dock. . This plug-in lets you control the keyboard layout. This can also display the current num and caps lock.