Messages app for imsd messages dbus
  • C++ 94.2%
  • Shell 3.9%
  • Python 1.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jorijn van der Graaf f93144ae2f
Ui, main: the input method, the app id, and touch through the pointer path
With the Crafter.Graphics branch delivering touch (the first finger as the
pointer), zwp_text_input_v3 and xdg app ids, the app:
- sets its app id on the window;
- tells the compositor which field has the focus and where its caret is,
  after every frame that changed it: the number field at once (purpose
  phone), the message field on a tap or a key; a sheet or leaving the
  screen takes it back;
- shows the input method's composing text in the accent colour at the
  cursor, each run placed at the advance the one before it was drawn
  with, applies its deletions by code point and leaves the composing
  text to the input method, and takes its committed text as typed (the
  composing text and its deletions are the core's Edit, in tests/Edit; a
  draft kept for a conversation that is left keeps a word still being
  composed as text); a tap inside the composing text leaves the cursor
  where it is, a tap elsewhere in the field commits the word where it
  was typed and resets the input method, as Send does, so the half-typed
  word does not move to the tap; a sheet, a hide and leaving a screen by
  Open (over the number screen or over another conversation), by Back or
  by the + end the composition the same way and at once (EndComposition:
  the word committed, the input method told), since the input method
  starts afresh after, and left on until the next frame it would send
  its next commit to the screen that opens or have it dropped. The
  message field starts unfocused, as on a phone, and the caret blinks
  only in a focused field;
- sends what the field shows: Send, like Start, reads the shown text
  once, the composing word included, and clears the field only once the
  store took it (a field of nothing but spaces and line breaks is
  cleared with nothing sent); the field keeps the focus while the input
  method is reset (disabled, enabled again the next frame) — a refused
  text leaves the field and the composing word as they are; Start reads
  the shown text once — the key and the address dialled come from it —
  so a refused number leaves the composing word to the input method;
- logs the window's size on every resize, and which conversation was
  opened — under --headless; a plain start names no correspondent in its
  log, as the rest of the app does not.
Touch takes the mouse's gesture path, and a touch the compositor cancels
(a gesture of its own) arrives as a release without the finger's
touch-up: it is fed to the gestures as a cancel, so it taps nothing.

Tested: tests/Edit (the composing text kept by a deletion, and put into
the field's text by ComposeCommitPreedit).
2026-11-18 01:12:27 +01:00
assets project: the repository skeleton 2026-10-17 23:14:00 +02:00
implementations Ui, main: the input method, the app id, and touch through the pointer path 2026-11-18 01:12:27 +01:00
interfaces Ui, main: the input method, the app id, and touch through the pointer path 2026-11-18 01:12:27 +01:00
packaging packaging: libevdev into a prefix for the Crafter.Graphics build 2026-11-18 01:12:27 +01:00
tests Ui, main: the input method, the app id, and touch through the pointer path 2026-11-18 01:12:27 +01:00
utilities main, utilities: bench helpers and a fake imsd 2026-11-18 01:12:27 +01:00
.gitignore project: the repository skeleton 2026-10-17 23:14:00 +02:00
AGENTS.md main, utilities: bench helpers and a fake imsd 2026-11-18 01:12:27 +01:00
FUNDING.yml project: the repository skeleton 2026-10-17 23:14:00 +02:00
LICENSE project: the repository skeleton 2026-10-17 23:14:00 +02:00
project.cpp Ui: the compose field and the send bar 2026-11-18 01:12:27 +01:00
README.md Bus: the GDBus client, imsd's dictionaries, the notifier and the owned name 2026-11-18 01:12:27 +01:00

imsd-messages

The SMS app for imsd on Linux phones. imsd 2.0.0 carries texts over IMS and keeps them until a messaging app takes them; this is that app. It speaks imsd's net.catcrafts.IMS1.Messaging D-Bus interface: no ModemManager, no modem.

Nothing to install yet. The flatpak will come from the Catcrafts remote:

flatpak remote-add --if-not-exists catcrafts https://flatpak.catcrafts.net/catcrafts.flatpakrepo

Building

This project uses Crafter.Build:

crafter-build          # the executable
crafter-build test     # the unit tests
crafter-build lint     # the house-style rules

License

GPL-3.0-only - see LICENSE. The bundled font (Noto Sans) is under the SIL Open Font License 1.1, see assets/OFL.txt.

Funding

https://catcrafts.net/shop/donation - see FUNDING

Copyright (C) 2026 Catcrafts® catcrafts.net