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
  PinePhone keyboard tones mlnease 10 3,354 04-29-2023, 11:29 AM
Last Post: mlnease
  Keyboard Remapping? jakfish 1 840 02-23-2023, 04:40 PM
Last Post: jakfish
  Best OS for Physical Keyboard? jakfish 2 1,154 02-20-2023, 05:45 AM
Last Post: _radv_
  update kills keyboard ludgate 1 1,114 05-18-2022, 12:43 AM
Last Post: programmin
  Pinephone keyboard (no, not that one) jhasler 0 882 04-03-2022, 09:22 PM
Last Post: jhasler
  Selling PinePhone Pro (PPP) with Keyboard Case. almost unused !! ZX Spectrum 3 2,657 02-24-2022, 08:12 AM
Last Post: zetabeta
  Selling original PinePhone postmarkedOS edition, 3GB RAM, keyboard cover + more ajtakrajta 4 2,750 02-23-2022, 10:34 AM
Last Post: lot378
  Trying out a few distros and the new keyboard Undvik 3 2,462 01-04-2022, 04:00 AM
Last Post: wibble
  Blutooth Keyboard use gilwood 1 1,906 12-25-2021, 10:20 AM
Last Post: gilwood
  hackers keyboard gilwood 0 1,458 12-20-2021, 08:25 AM
Last Post: gilwood

Forum Jump:


Users browsing this thread: 1 Guest(s)