Skip to content

mrwormhole/virtual-keyboard

Repository files navigation

virtual-keyboard

Version CI Build License

I have realized I need some sort of virtual keyboard so that I can type different alphabets faster with UK keyboard layout.

I have been inspired by this website in my trilingual language journey.

screenshot

Dependencies

  • Python (>=3.12) download here
  • GTK (>=4) download here
  • Sarabun font download here

Run with python

uv sync
python ./keyboard.py

Or roll your own binary

uv sync --all-extras --dev
uv run pyinstaller keyboard.spec
./dist/keyboard

Linux Binaries

Grab the binary from releases for your OS then rename it to virtual-keyboard and move to /usr/local/bin

Create the virtual-keyboard.desktop in /usr/share/applications and copy the contents of this desktop file

FAQs

  • Why is there an error message saying GskMessage - Failed to realize renderer of type 'GskGLRenderer' for surface 'GdkWaylandToplevel': Failed to create EGL display?

Just do GSK_RENDERER=cairo ./binary if you got the binary from the releases, you won't have this message if you build the binary manually on your machine.

  • Do you plan to add more languages?

We can consider as long as we don't break existing languages, I will not support chinese or japanese due to the complexity it brings.

  • Why GTK?

I use GNOME so I wanted to feel the native experience.

  • Will you support GTK3?

No, please use up-to-date software.

References