Skip to content

Add Reach: one keyboard and mouse across your Circle machines - #19101

Open
dhh wants to merge 8 commits into
quattrofrom
reach
Open

dhh wants to merge 8 commits into
quattrofrom
reach

Conversation

@dhh

@dhh dhh commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

What changes

Reach lets one keyboard and mouse (and the clipboard) move across your Omarchy machines on Circle: push the cursor off a screen edge and it carries on onto the next machine. This makes it part of Omarchy:

  • Reach panel (omarchy.reach, its own bar widget): the row of machines drawn like the Display panel's layout, this machine in the accent. Drag a machine to move it, × to take it out, and add your other Circle machines at either end. A switch turns the reach user service on or off here; right-clicking the icon does the same. Keyboard: j/k between sections, h/l picks, ctrl+h/l moves, x removes. IPC: omarchy-shell omarchy.reach place <machine> left|right, unplace <machine>.
  • The row is written with reach arrange, and Reach itself hands the newest row to every other machine (omacom/reach#1), so it's set once, anywhere.
  • Hidden until useful, like Continuity: the icon is in the default bar (before network) but only shows once Circle is up and another of your machines is close by (Circle reaches it directly, quickly, from one of this machine's networks), or a row is already set. Reach keeps $XDG_RUNTIME_DIR/reach.json current and the panel watches it, so a hidden icon runs nothing; opening the panel asks systemd whether Reach is running.
  • Installed by default: reach in the base packages, 24850/tcp opened on circle0 only, reach.service enabled at first run (it idles until it's given a row), and a migration doing the same on existing installs and adding the icon to existing bars.

Depends on the reach package in omarchy-pkgs, which needs omacom/reach#1 merged, the repo public, and a v0.1.0 tag. Don't merge before that, or installs won't find reach.

Verification

  • test/shell.d/reach-test.sh (new: parsing, tiles, add list, place/move/nudge/remove, drop index) passes.
  • Also pass: i18n-test, first-run-test, firewall-config-test, platform-packages-test, preinstalls-test, manifest-entrypoints-test, keyboard-panel-lazy-test, panel-command-path-test, panel-open-budgets-test, plugin-registry-contract-test, plugins-test, plugin-validate-test, migrate-scope-test, shell-idle-spawn-test.
  • Hidden/shown check with this branch's shell: icon shown with Circle up and two machines close by, gone when the state file is removed, back when it returns.
  • Ran this branch's shell on cph-fd (x86_64) with dhh-dell-n1x (aarch64) on Circle: the panel showed dhh-dell-n1x | [cph-fd]; place cph-spark1 right drew three tiles and the Dell's config had the same row within seconds; unplace restored it on both. Opening and closing the panel repeatedly leaves the service alone.
  • Not checked: dragging tiles with a real pointer (no input injection on a live desktop), and the migration on a machine without Reach yet (needs the package).

Screenshots

Panel with two and three machines in the row; to be dragged in (the CLI can't upload images).

🤖 Generated with Claude Code

dhh and others added 2 commits November 16, 2026 10:09
Reach (omacom/reach) moves one keyboard and mouse across your machines on
Circle. Its panel draws the row of machines the way the Display panel draws
displays: this machine in the accent, drag a machine to move it, × to take
it out, and your other Circle machines listed to add at either end. A switch
turns the reach user service on or off here. The row is written with
`reach arrange`, and Reach hands it to every other machine.

State is read only while the panel is open. The widget isn't in the default
bar; Circle's installer enables it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reach goes in the base packages, its port (24850/tcp) is opened on the
circle0 interface only, and its user service is enabled at first run, where
it idles until it's given a row of machines. A migration does the same on
existing installs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@greptile-apps

greptile-apps Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge, subject to the Reach package prerequisite already stated in its description.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge, subject to the Reach package prerequisite already stated in its description.

Summary

Adds Reach to the default install and bar, with controls for sharing a keyboard and mouse across Circle machines.

  • Users can arrange Circle machines and control Reach from the bar.
  • Omarchy installs Reach and allows its traffic on the Circle interface.

Diagram

sequenceDiagram
  participant User
  participant Panel as Reach panel
  participant File as reach.json
  participant Reach
  participant Peers as Circle machines
  Reach->>File: Publish machines and saved row
  File-->>Panel: Notify changes
  User->>Panel: Add, move, or remove a machine
  Panel->>Reach: reach arrange
  Reach->>Peers: Share updated row
  Reach->>File: Publish updated state
Loading

Reviews (7) · Last reviewed commit: "Drop the test for the Reach migration" · Reviewed by Greptile

Comment thread shell/plugins/panels/reach/Panel.qml Resolved
Comment thread shell/plugins/panels/reach/Panel.qml Resolved
Comment thread shell/plugins/panels/reach/Panel.qml Resolved
Comment thread shell/plugins/panels/reach/Panel.qml Resolved
Comment thread shell/plugins/panels/reach/Panel.qml Resolved
Like Continuity offering Universal Control, the Reach icon now sits in
the default bar but stays hidden until Circle is up and one of your
machines is close by (or a row is already set). Reach keeps
$XDG_RUNTIME_DIR/reach.json current with the row, who's connected, and
which Circle machines are close by; the panel watches that file instead
of polling, and only asks systemd whether Reach is running when opened.
Machines close by are offered first, and a placed machine without Reach
running is marked.

The migration adds the icon to existing bars, before the network icon.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread shell/plugins/panels/reach/Panel.qml Resolved
dhh and others added 2 commits November 25, 2026 23:07
# Conflicts:
#	config/omarchy/shell.json
#	install/config/firewall.sh
#	install/user/first-run/enable-user-units.sh
Circle has no accounts anymore: machines join a network. Say so where
the panel has no other machines to offer, and in its README.

Reach now writes this machine's Circle name into its status too, so the
test fixture carries it. Reach also follows Circle's names and addresses
itself now (omacom/reach#2), which the panel already expects.

Move the migration after quattro's newest, so it still runs in order,
and put the widget before Network in the default bar too, where the
migration places it on existing installs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread migrations/1795644068.sh Resolved
dhh and others added 2 commits November 25, 2026 23:13
…t to right

- Installed and running come from systemd (LoadState, ActiveState), not
  from $XDG_RUNTIME_DIR/reach.json: a reboot with Reach turned off left
  no file, so the panel called Reach not installed and hid its switch.
- Right-click and the switch ask systemd first and toggle on its answer,
  so they work right after login and never act on old state.
- The machines to add scroll inside the card, keeping the picked one in
  view, instead of running off the screen.
- The row is the desk, so it stays left to right in right-to-left
  languages, like a QR code, and the arrow keys and the add buttons
  keep meaning the desk's left and right.
- Tile motion eases with Style.easeOut, as the motion guide asks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
omarchy-plugin-enable asks the running shell, so a migration run without
one added no icon, and `|| true` marked it done anyway. Write the icon
into shell.json instead, which the shell hot-reloads: before Network, or
at the end of the right section, once, and through a linked shell.json.
A shell.json jq can't read leaves the migration pending.

Until the reach package is published, exit 75 so the migration stays
pending without stopping the update, as the migration guide asks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread test/shell.d/reach-migration-test.sh Resolved
AGENTS.md: no test for a migration, which runs once and is frozen once it
ships. It was checked by hand against the same cases before this.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants