Hey, I thought it'd be nice if wofi supported virtual keyboards. It would make it usable with convertible/2-in-1 devices.
If I understand this correctly there would be a need to call a dbus method on startup, lost input focus and gained input focus.
Shell examples:
Startup, gain focus: busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true
Lost focus: busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b false
Is there a freedesktop or other generic dbus interface for this? I looked around but couldn't really find anything regarding it. The interface in your examples is purism specific, not that I have a huge issue implementing something specific like that but if there's a generic way that isn't specific to one keyboard impl I'd much prefer that.
Yeah, I couldn't find anything more generic either. I referenced purism's examples because it seems like squeekboard 1 is the most popular virtual keyboard among wayland users. And it seems like purism is treated as the standard. 2 All in all, no pressure, I just wanted to indicate that wofi might be a good candidate for a launcher for convertible devices.
Yeah that's fine, I have no problem supporting squeekboard or more specifically the
sm.puri.OSKn
interface, I just wanted to make sure a generic, portable option wasn't first available.
Added by 8ac2a7e37d17
Works like a charm. Thanks!
Hiya. Is there an option to prevent squeekboard / sm.puri.OSK from opening when the entry is in focus? Tried grepping the manuals but didn't see anything. I'd like to be able to disable it for some menus.
Cheers!
Hi there. I've submitted a patch here
My apologies if I botched the submission process. New to sourcehut, mercurical, and patches instead of PRs -- but all and all pretty painless.
Cheers!