Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I use Plover without a GUI? #1079

Closed
F1LT3R opened this issue Jul 6, 2019 · 5 comments
Closed

Can I use Plover without a GUI? #1079

F1LT3R opened this issue Jul 6, 2019 · 5 comments
Labels

Comments

@F1LT3R
Copy link

F1LT3R commented Jul 6, 2019

Is it possible to use Plover without a GUI? IE: on a Linux device with no GUI installed?

How would I do this?

@F1LT3R F1LT3R changed the title Can I use Plover without a GUI Can I use Plover without a GUI? Jul 6, 2019
@Teteros
Copy link

Teteros commented Jul 6, 2019

You can use --gui none option (at least on plover 4+) which works for daemonized usage but plover is still reliant on xorg server to run.

@F1LT3R
Copy link
Author

F1LT3R commented Jul 6, 2019

Ok thanks @Teteros
I found this from Ian Cloud: https://groups.google.com/d/msg/ploversteno/1cJlOU7eJzM/C4cCw5-nFAAJ - which says that it can be run from the terminal. Perhaps that still uses xorg though.

@F1LT3R
Copy link
Author

F1LT3R commented Jul 14, 2019

@Teteros what function is xorg server playing exactly? I'm trying to establish what a NodeJS port of Plover might look like.

@Teteros
Copy link

Teteros commented Jul 15, 2019

Plover is using hardcoded keymaps from xorg
https://github.com/openstenoproject/plover/blob/master/plover/key_combo.py#L6
https://github.com/openstenoproject/plover/blob/master/plover/oslayer/xkeyboardcontrol.py

Not sure how well you could grab keys from linux framebuffer / virtual console instead, or if it's even viable.

This dependency on xorg is a stopper for #1050 (Wayland support) as well since you'd need to support one of its compositors instead of using xlib.

@benoit-pierre
Copy link
Member

Even when run with no GUI (-g none), Plover still rely on X11 support for:

  • the keyboard machine: using the XInput extension to capture/grab input
  • simulating keyboard input: detecting the keyboard layout (this is not hard-coded, the list in key_combo.py is unrelated) and dynamically patching it for full Unicode support, and using the XTest extension for simulating keyboard events

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants