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.

Note

#Librem5 and notebook sharing the same...

Chris Vogel's microblog
@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).
Track hw keyboards and disable/hide OSK when one gets attached (!130) · Merge requests · Guido Günther / phosh-osk-stub · GitLab

The OSK is hidden/shown based on the presence of a hw keyboard. This behavior can be disabled for e.g. tablets that want to use an OSK and hw...

GitLab
@agx @me cool! much apprecimiated! :)