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
  Best OS for Physical Keyboard? jakfish 3 2,357 06-22-2024, 08:26 AM
Last Post: Peter Gamma
  pinephone virtual keyboard aular 4 1,662 04-10-2024, 03:45 PM
Last Post: aular
  PinePhone keyboard tones mlnease 10 5,320 04-29-2023, 11:29 AM
Last Post: mlnease
  Keyboard Remapping? jakfish 1 1,217 02-23-2023, 04:40 PM
Last Post: jakfish
  update kills keyboard ludgate 1 1,482 05-18-2022, 12:43 AM
Last Post: programmin
  Pinephone keyboard (no, not that one) jhasler 0 1,157 04-03-2022, 09:22 PM
Last Post: jhasler
  Selling PinePhone Pro (PPP) with Keyboard Case. almost unused !! ZX Spectrum 3 3,371 02-24-2022, 08:12 AM
Last Post: zetabeta
  Selling original PinePhone postmarkedOS edition, 3GB RAM, keyboard cover + more ajtakrajta 4 3,651 02-23-2022, 10:34 AM
Last Post: lot378
  Trying out a few distros and the new keyboard Undvik 3 3,293 01-04-2022, 04:00 AM
Last Post: wibble
  Blutooth Keyboard use gilwood 1 2,306 12-25-2021, 10:20 AM
Last Post: gilwood

Forum Jump:


Users browsing this thread: 3 Guest(s)