11-22-2020, 08:28 PM
(This post was last modified: 08-23-2021, 01:50 PM by jack1.)
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...
It moved to:
https://codeberg.org/jackc/OnKey
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? 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?
11-23-2020, 02:30 PM
(This post was last modified: 11-23-2020, 02:31 PM by jack1.)
(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!
(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
11-24-2020, 03:04 PM
(This post was last modified: 11-24-2020, 03:05 PM by jack1.)
(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...
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!
12-11-2020, 03:24 AM
(This post was last modified: 12-16-2020, 03:08 AM by olidajin.)
(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?
great, thanks for sharing
01-05-2021, 07:24 PM
(This post was last modified: 01-06-2021, 06:53 PM by jack1.)
(12-11-2020, 03:24 AM)olidajin Wrote: Do you really have this intention klingeltöne in future? You mean the multi screen thing ?
I was thinking... you can simply set as default the screen you want to show the keyboard
Thank you for your recommendation. I happened to be learning this one, thank you very much.
|