When doing the #deskhop to share keyboard/mouse between my #Librem5 and my notebook on the Librem5 still the on-screen keyboard (#osk) keeps popping up and takes away part of the small screen.
This can be disabled through gsettings but doing so each time when I place the phone beside my notebook is tiresome.
So I recovered some old proof of concept I had made, tested it and packaged it:
switch-keyboard installs an #udev rule that triggers when an external keyboard is connected and disables the osk. On disconnect it re-enables the osk and there is an entry for the menu included to just toggle the keyboard on and off just in case you're left without #osk after disconnecting an external keyboard.
@me Nice. That reminds me that I didn't do a video of https://gitlab.gnome.org/guidog/phosh-osk-stub/-/merge_requests/130 yet which does something similar on the OSK level (allowing you to toggle this on/off via gsetting).