~scoopta/wofi#90: 
Virtual keyboard support

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

Status
RESOLVED IMPLEMENTED
Submitter
Krystian Chachuła
Assigned to
Submitted
5 years ago
Updated
3 years ago
Labels
todo

~scoopta 5 years ago

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.

~krystiancha 5 years ago

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.

~scoopta 5 years ago

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.

~scoopta REPORTED IMPLEMENTED 5 years ago

Added by 8ac2a7e37d17

~krystiancha 5 years ago

Works like a charm. Thanks!

~zizzo 3 years ago

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!

~zizzo 3 years ago

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!

Register here or Log in to comment, or comment via email.