OnKey onscreen keyboard
#1
Hi, i made this lightweight onscreen keyboard for the pinephone (for Xorg) becuse i couldn't find a good one. Try it ! OnKey
idk if it works on xwayland...

Exclamation  It moved to:
https://codeberg.org/jackc/OnKey
Exclamation
  Reply
#2
I was looking into doing something similar myself, nice work. I'm personally looking to just use X11 and not rely on gtk (it'll look less clean, but should be more performant).

For an advanced feature, the other thing you may want to consider is a "typing" mode that offers spelling corrections. Also would be great if you could load a character profile for different languages.

One note about the code, is your space bar and tab key broken? Big Grin The indentation is awful! Haha https://github.com/jackghg/OnKey/blob/main/onkey.c

Btw, isn't an additional limitation that it's designed for single display use?
  Reply
#3
(11-23-2020, 10:20 AM)barray Wrote: I was...
Thanks! no, i dont want spell check. character profile, yes id like, maybe 2 or 3 profiles... that would increase a bit the ram... about multi display, on a portable device, if it has more than one display, the keyboard goes on the main one. A desktop has a keyboard... well some tablet could have 2 display... may be in future.

I made an issue!
  Reply
#4
(11-23-2020, 02:30 PM)jack1 Wrote:
(11-23-2020, 10:20 AM)barray Wrote: I was...
Thanks! no, i dont want spell check. character profile, yes id like, maybe 2 or 3 profiles... that would increase a bit the ram... about multi display, on a portable device, if it has more than one display, the keyboard goes on the main one. A desktop has a keyboard... well some tablet could have 2 display... may be in future.

I made an issue!

About profiles, I would suggest loading from a configuration file. That way people can change other settings, like colours, fonts, etc. You would only load the relevant configuration into RAM, then close the file. I made a single file include for a basic JSON parser that might be interesting for you: https://github.com/danielbarry/JSON/blob/master/json.hh

Regarding displays, many devices have external display support, so it's worth testing how well it works Smile
  Reply
#5
(11-23-2020, 04:37 PM)barray Wrote: ...
Barry, i must share this keyboard that a guy on reddit told me... https://tools.suckless.org/x/svkbd/
Doesnt use gtk, he says...
  Reply
#6
Yeah just looking at the source files, it does indeed seem to be good: https://git.suckless.org/svkbd/files.html

I have some other very unique requirements too that are specific to the way the window manager code works, I'll have to test it and see how well it holds up. Thanks for the info!
  Reply
#7
(11-23-2020, 02:30 PM)jack1 Wrote:
(11-23-2020, 10:20 AM)barray Wrote: I was...
Thanks! no, i dont want spell check. character profile, yes id like, maybe 2 or 3 profiles... that would increase a bit the ram... about multi display, on a portable device, if it has more than one display, the keyboard goes on the main one. A desktop has a keyboard... well some tablet could have 2 display... may be in future.

I made an issue!
Do you really have this intention klingeltöne in future?  Rolleyes
  Reply
#8
great, thanks for sharing
  Reply
#9
(12-11-2020, 03:24 AM)olidajin Wrote: Do you really have this intention klingeltöne in future?  Rolleyes
You mean the multi screen thing ?
I was thinking... you can simply set as default the screen you want to show the keyboard
  Reply
#10
Thank you for your recommendation. I happened to be learning this one, thank you very much.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Where is the keyboard @ key on pinebook pro? jon snow 1 835 02-24-2021, 05:52 AM
Last Post: Byte
  Incorrect keyboard behavior for X11 apps (like Java) Saliency 0 614 09-14-2020, 05:14 PM
Last Post: Saliency
  TTY Keyboard on PinePhone Danct12 3 2,427 01-06-2020, 05:35 PM
Last Post: Danct12

Forum Jump:


Users browsing this thread: 1 Guest(s)