wvkbd icon indicating copy to clipboard operation
wvkbd copied to clipboard

is there a way to disable the keyboard?

Open MrMegaMango opened this issue 2 years ago • 5 comments

On a Raspberry Pi OS Bookworm

MrMegaMango avatar Nov 03 '23 08:11 MrMegaMango

I'm not sure what you mean, if by disable you mean hide wvkbd, then yes, send signal SIGUSR2 to hide and SIGUSR1 to show again (or SIGRTMIN to toggle).

proycon avatar Nov 03 '23 20:11 proycon

On Raspberry Pi Bookworm I also didn't have any joy with the keyboard automatically appearing/hiding. This might be an issue with the version of Wayfire (0.7.4) I am using or the older version of wvkbd that is packaged with the OS (v12.1).

My understanding is that the wm/compositor should send these signals (eg. SIGUSR1/2, etc...) on entering a text field. However, I don't see anything in the wayfire debug log to indicate this is happening. I can just see the change in cursor focus when I move over different surfaces.

Right now, I'm resorting to using touch screen gestures to display/hide the keyboard, but would be interested to learn if there's anything I'm doing wrong.

kefabean avatar Nov 06 '23 12:11 kefabean

My understanding is that the wm/compositor should send these signals (eg. SIGUSR1/2, etc...) on entering a text field.

No, any other process can send it (such as a gesture daemon like lisgd), but it's wvkbd specific and not an established mechanism. Compositors won't send it. What you're referring to, automatic showing/hiding based on text fields, is the wayland input method protocol, but wvkbd does not implement this yet.

proycon avatar Nov 10 '23 20:11 proycon

Hello, So if I understand correctly, you need to use a daemon to toggle the SIGUSR1 / SIGUSR2 ? Or is there a way to configure them through wvkbd directly ?

I'm pretty sure a daemon is needed, but I don't find a lot of information on SIGUSR usage and I'm still learning linux

Thanks

Draculagibus avatar Dec 12 '23 11:12 Draculagibus

From a terminal you can send the signal like:

hide: kill -USR1 $(pidof wvkbd-mobintl) show: kill -USR2 $(pidof wvkbd-mobintl) toggle: kill -34 $(pidof wvkbd-mobintl)

You can't hide/show wvkbd from wvkbd itself no

proycon avatar Mar 03 '24 10:03 proycon