You got me excited there for a minute! Though I don't really want workarounds (they are the only way and therefore a necessity / automatically good, but they are not the real thing), I want virtual keyboards with actual native Wayland support, please :(
Linux
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
Squeekboard is where it's at. By far my favorite onscreen keyboard for Linux and mainly because you can easily create your own layouts using .yaml files. I'm tired of virtual keyboards that omit keys needed for development and terminal use or shove them off to separate tabs. My custom Squeekboard layout fits my needs exactly and I'm pretty fast at typing on it (typing this on it now). I wish it were usable outside of Phosh, though tbf I haven't tried. Between GNOME Mobile, KDE Plasma Mobile, and Phosh (Squeekboard), I choose Phosh primarily because of how much I like Squeekboard.
Yay a Git repo without screenshots
Maliit has explicit wayland support and has a kcm
The problems with Maliit are that it lacks special keys like Ctrl, Alt, Tab, Esq, F1-F12, etc. And you cannot invoke it by yourself to type in XWayland applications or others which don't pull up the keyboard by themselves.
The Gnome keyboard seems to be better in that regard but I couldn't even find its name to pull it up outside of Gnome.
And you cannot invoke it by yourself to type in XWayland applications
Yes you can
How?
I mean, I got a different solution by now, but would be nice to know for the future.
When you have a Xwayland app focused, the Plasma panel will have an upward facing arrow in the system tray. If you tap it, the virtual keyboard will pop up
Not on Plasma Desktop. Maybe on Mobile. But I was not able to find out how to get it to Desktop.
I am talking about the desktop. Mobile doesn't have a system tray.
What distribution? No such thing for me with Plasma 6 on OpenSUSE Tumbleweed.
Fedora. Though I just tested it again and the input method icon is now hidden by default, and does not automatically show up when appropriate :|
You can make it always be shown in the system tray configuration, but this should really work out of the box...
Cool. They didnt ask for a fully-featured keyboard, they asked for a wayland-compatible onscreen keyboard.
In that case please state which Wayland support it has. That's the beauty of standards, there are so many to choose from. And in the case of Wayland keyboards you have to know which one the keyboard and which the compositor supports, making it extra easy for the user.
I'm not even sure if any of the 3? 4? Wayland protocols allow for a fully featured osk. So this actually feels like the best outcome.
That sounds great!
What version of Plasma does it require, though?
And how is it able to inject key events with extest? Does it use some wayland feature to get permission to do so, or does it do some kind of workaround like the uinput trick?
I tested it on Plasma 6. If I interpret the extest Readme correctly it uses the uinput trick. So I guess that it works with older versions as well. Maybe without the plasma integration.
Oh. Does that mean that I need to open up the permissions of /dev/uinput for this to work?
Look at the extest readme, everything is there.
Sorry, didn't realize that the link is to extest's repo.
It seems that this actually undoes wayland's protection against any program inserting fake input events, and it does not only allow onboard to do so.
I thought that it was already possible with onboard, with selecting uinput instead of xtest in the settings. Never tried though, because I didn't want to undo that security measure.
I'll have to try the uinput setting. Maybe the workaround isn't needed after all. Or at least it doesn't have to be so convoluted.
But yeah, it's really just a dirty placeholder until we can get a proper solution in the next 50 years or so.
how do i compile as 64bit
Edit: ignore comment, didn't realise it was about the Deck initially!