GitHub - milesj2/Keyboard-Monitor

For use with Ubuntu and a 2-in-1 laptop with a removable keyboard, where the on-screen keyboard keeps appearing on click, even with a keyboard attached. This checks to see if the keyboard is still connected, enabling/disabling the on-screen keyboard as necccessary.

Prerequisites:

Gnome extension block caribou is used to stop on-screen keyboard appearing when its disabled here.

Install:

Steps for starting script on reboot:
* Open Startuo Applications.
* Here Click the Add Button.
* Give it a name and in the command put "{path to python} {path to location of downloaded script}".
* Done

And that's it.