Commit graph

132 commits

Author SHA1 Message Date
jedugsem
c50f57df15 better 2026-01-31 02:30:26 +01:00
jedugsem
ead55994d4 new 2026-01-26 22:10:41 +01:00
jedugsem
f857cede57 new 2026-01-26 20:27:15 +01:00
jedugsem
cf257a7707 new 2026-01-26 18:53:57 +01:00
Your Name
5f2aa46ea9 move config to .config/unffettered-keyboard/unffetered.yaml 2025-11-06 21:10:40 +01:00
Your Name
a0d8bbd1f4 rounded corners 2025-11-06 20:37:41 +01:00
Your Name
604d2e4134 add xdg configs 2025-11-06 20:07:16 +01:00
Richard Acayan
136dad885e Cargo.toml: bump to version 3.1.0
New features:
- evfb and evfbo backend (!4)
- configurable colors (!7)

Fixes:
- meta and switch layout keys are pressable even when they can't be emitted as key presses
- keysym modifiers correctly update which key presses can be emitted
- keep imgref and polling dependencies up-to-date
2025-07-22 17:36:11 -04:00
Richard Acayan
5babcc41ae README: document TTY and FDE environment 2025-07-21 19:25:35 -04:00
Richard Acayan
c92b571c16 add evfbo (evdev + fbdev + stdout) backend
During a normal boot in the postmarketOS initramfs, the TTY is not
easily accessible. The on-screen keyboard is expected to send the
password to stdout instead of to a uinput device. Add the evfbo backend
to support full-disk encryption.
2025-07-21 19:25:35 -04:00
Richard Acayan
7b38edb656 add evfb (evdev + fbdev) backend
Outside of a terminal emulator or web browser, this typing experience
can be useful outside the DE, such as in the TTY or when entering a
password for full-disk encryption. Add a target that uses the bare
hardware to allow the keyboard to be deployed in more flexible
environments.
2025-07-21 19:25:35 -04:00
Richard Acayan
9b893e474d Cargo.toml: remove extra version constraint for imgref and polling
The imgref and polling dependencies have an API that shouldn't break
without a major version change. Rely solely on the major version number
to tell Cargo which package to use.
2025-07-21 19:24:34 -04:00
Richard Acayan
ac4673f870
core: config: revert change in default colors from !7
In !7, the default colors had their red and blue channels swapped. There
doesn't seem to be a stated (or inferrable) reason, so revert the color
change back.
2025-06-20 22:31:07 -04:00
Richard Acayan
c911577eb8
core: graphics: use pressed color for pressed keys
The locked label color is a special color that displays when the user
holds a modifier key for very long. In !7, this locked color replaced
the color for the pressed non-modifier key with no explanation. Revert
the change and use the "label_pressed" color for a non-modifier key
being pressed.
2025-06-12 23:20:45 -04:00
Frieder Hannenheim
a02f404832
Use color configuration options 2025-05-12 18:09:37 -04:00
Frieder Hannenheim
f6405cad69
core: config: Add configuration options for keyboard colors
[richard: prefix commit message with code modified and sign]
2025-05-12 18:09:29 -04:00
Frieder Hannenheim
30b6b0e636
use wrapper for including expat
This is necessary for building on systems that don't store headers in /usr/include
2025-05-09 19:20:39 -04:00
Richard Acayan
42bb11379b
README: document missing dependencies
Closes #9
2025-04-08 22:25:29 -04:00
Richard Acayan
d751e01b21
core: layout: make meta key and layout switchers always pressable 2025-04-08 22:24:58 -04:00
Richard Acayan
a58f567715
core: layout: check if new key is supported when modifiers are updated
Some modifiers update key values. If the old values are unsupported
(e.g. "¢") but the new values are supported (e.g. "c"), the keyboard
should let the user press the new value. Check if the new key value
is supported instead of the old one.
2025-03-28 22:33:06 -04:00
Richard Acayan
94e242af17 Cargo.toml: bump to version 3.0.0 2025-03-27 22:07:19 -04:00
Richard Acayan
863ec2938d core: layout: fix some clippy warnings in get_keysym_by_name
Convert the vector reference to a slice and use the strip_prefix
function when detecting "loc " hideable keys.
2025-03-27 22:07:19 -04:00
Richard Acayan
52b48b0474 Cargo.toml: update dependencies 2025-03-27 22:07:19 -04:00
Richard Acayan
f2c3f01120 Cargo.toml: remove extra version constraint for zbus, tokio, and bindgen
The zbus and tokio dependencies have an API that shouldn't break without
a major version change. Rely solely on the major version number to tell
Cargo which package to use.

For bindgen, macro version numbers should be omitted.
2025-03-27 22:07:19 -04:00
Richard Acayan
9ebd4ed7c5 core: layout: mark layout switcher for Greek math as non-text
The "switch_greekmath" key doesn't emit text. The Shift modifier
shouldn't make the key label uppercase. Mark it as a key that doesn't
emit text.
2025-03-27 22:07:19 -04:00
Richard Acayan
7994a2594b dbus: depend directly on futures-util for StreamExt trait
The zbus package currently doesn't re-export futures-util. Depend
directly on futures-util to listen for incoming signals.
2025-03-27 22:07:17 -04:00
Richard Acayan
14b038a8c0
Cargo.toml: upgrade tokio to 1.42 2024-12-26 20:44:57 -05:00
Richard Acayan
3220fa0a68
README: guide the user to install greekmath.xml
The command says numeric.xml which was already installed in a previous
command. Correct it to say greekmath.xml.
2024-12-26 20:44:34 -05:00
Richard Acayan
d8d110018b
kde, gnome: join with blocking event loop 2024-11-29 17:53:23 -05:00
Richard Acayan
9ce953ef09
treewide: update dependencies to latest version 2024-11-27 22:05:25 -05:00
Richard Acayan
67f6538a8b
core: layout: handle extra "loc " keys 2024-11-07 18:44:18 -05:00
Richard Acayan
d9956baffa
core: config: add extra_keys property
According to the layout XML format, keys prefixed with "loc " should
have an option to hide or show them. Add a property to facilitate this
configuration. Keep the array sorted so it can be binary searched for
the existence of an element.
2024-11-07 18:17:01 -05:00
Richard Acayan
14cd2d930b
core: layout: add switch_greekmath key 2024-10-31 18:38:38 -04:00
Richard Acayan
03b6d4509b
core: button: add switch_greekmath functionality 2024-10-31 18:38:34 -04:00
Richard Acayan
92983bcc99
core: graphics: add switch_greekmath label flags
The label for the layout switcher should be gray and have a small font.
Add the flags for it.
2024-10-31 18:37:55 -04:00
Richard Acayan
bb2a2c24f9
core: graphics: set secondary flag for number key switcher label
The switch_numeric key label should be grey. Set the flag for a
secondary key label.
2024-10-31 18:37:50 -04:00
Richard Acayan
ab035f1b2c
core: layout: add hardcoded greekmath layout
Add the built-in layout for Greek and math characters.
2024-10-31 18:32:42 -04:00
Richard Acayan
4a55205202
core: layout: correctly convert character to keysym
Some characters, such as U+03A3 (GREEK CAPITAL LETTER SIGMA) don't
convert directly to the proper key symbol. Use a xkeysym library
function to do correct conversions.
2024-10-31 18:30:28 -04:00
Richard Acayan
1323cada17
wayland: enable keys emitting key events on reis capability
When key events can be emitted with the Emulated Input protocol, this
can cause more keys to be supported. Update the supported keys when a
keyboard is received so some keys can be enabled immediately, without
switching the layout.

Fixes: 030ca29ddd ("wayland: add optional reis emulated input support")
2024-10-29 22:22:33 -04:00
Richard Acayan
95fe5521c2
Cargo.toml: bump to version 2.1.1 2024-10-21 18:36:24 -04:00
Richard Acayan
1e2c3d2ef4
wayland: keyboard: unlink keymap file after creation
The SHM pools in the buffer code can be removed immediately after
creation. This allows the filesystem to be clean after the application
closes. After files are unlinked, they are not deleted until all open
file descriptors are closed, such as the handle passed to Wayland.
Unlink the keymap file after it is created from the filesystem.
2024-10-21 18:25:36 -04:00
Richard Acayan
bffe08cbed
README: add numeric.xml to list of required layouts
Since the numeric layout got supported, the XML file defining the layout
was required. Add it to the list of required layouts in the README so
users can still install and run the current keyboard.

Fixes: e5d0716c0f ("core: button: add support for layout switching keys")
Link: https://gitlab.com/flamingradian/unfettered-keyboard/-/issues/7
2024-10-20 21:58:10 -04:00
Richard Acayan
283b88c51e
README: add license 2024-10-17 21:57:40 -04:00
Richard Acayan
5ed1c6c68e Cargo.toml: bump to version 2.1.0 2024-10-17 21:35:50 -04:00
Richard Acayan
0c48bd7ed0
add KDE target
Key presses can be sent to kwin with the EI (Emulated Input) protocol.
Connecting is handled by the xdg-desktop-portal D-Bus APIs and the
current D-Bus implementation is large. Add a separate target for KDE.
2024-10-17 21:34:53 -04:00
Richard Acayan
030ca29ddd
wayland: add optional reis emulated input support
Add support for the Emulated Input protocol using the Rust library.
2024-10-17 21:31:48 -04:00
Richard Acayan
89c96c511a
wayland: keyboard: add reis emulated input support
The Emulated Input (EI) protocol allows applications to send input
events through a distinct connection to the server, instead of through
Wayland. Add support for sending key presses through this protocol.
2024-10-17 21:31:38 -04:00
Richard Acayan
ff24a39214
Cargo.toml: add remotedesktop support
The ashpd and reis dependencies are required for using an
xdg-desktop-portal to connect to an Emulated Input Server. Add them to
prepare for better support on KDE.
2024-10-17 21:31:26 -04:00
Richard Acayan
323dba04ed
Cargo.toml: omit micro version number of dependencies
Cargo automatically chooses the micro version of each dependency. Do not
specify the micro version number as it is ignored.
2024-10-17 21:31:06 -04:00
Richard Acayan
2eba66cca7 Merge branch 'input-method-enable' of https://gitlab.com/flamingradian/unfettered-keyboard into HEAD 2024-10-17 21:12:30 -04:00