No description
Find a file
Eduard Tolosa 107de1c3ff fix: extension supervisor + panel hardening
- Daemon supervisor: a _spawnPending guard so an in-flight GetNameOwner check
  plus a firing backoff timer can't spawn two daemons; wait_async now binds the
  subprocess and _onDaemonExited ignores foreign/stale exits, so backoff
  accounting can't be corrupted by an overlapping spawn.
- Panel: clearItems() invalidates the search snapshot (_resultsEpoch = -1) so a
  scroll after HistoryCleared can't render stale rows; _ensureVisible's idle
  callback null-guards the overlay like the other idle callbacks.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-26 21:33:04 -05:00
.github/workflows Initial commit 2026-05-25 03:02:34 -05:00
contrib/systemd Initial commit 2026-05-25 03:02:34 -05:00
strata-daemon deps+fix: upgrade zbus 5 / rusqlite 0.40 / dirs 6; daemon hardening 2026-05-26 21:32:56 -05:00
strata@edu4rdshl.dev fix: extension supervisor + panel hardening 2026-05-26 21:33:04 -05:00
.gitignore Initial commit 2026-05-25 03:02:34 -05:00
AGENTS.md fix: rename D-Bus name to dev.edu4rdshl.Strata; drop recursive theme reload 2026-05-26 19:20:12 -05:00
ARCHITECTURE.md docs: explain the light.css class-toggle mechanism and theme-switch caveat 2026-05-26 19:33:23 -05:00
CHANGELOG.md chore: bump versions to 0.7.0 2026-05-26 19:20:18 -05:00
Makefile feat: light/dark theme support 2026-05-26 14:49:08 -05:00
README.md docs: add AUR install (stable and -git package sets) 2026-05-26 19:36:30 -05:00

Strata

A fast, stutter-free clipboard manager for GNOME Shell.

All heavy work (hashing, decoding, storage, search, thumbnails) lives in a Rust daemon. The GNOME Shell extension only renders UI and forwards events over D-Bus, so the compositor is never blocked, even with thousands of items.

Architecture

Strata is two components, and you need both for it to work:

Component Language Role
strata-daemon/ Rust + tokio + zbus Storage (SQLite + FTS5), dedup, thumbnails, D-Bus service dev.edu4rdshl.Strata
strata@edu4rdshl.dev/ GJS (GNOME Shell extension) Top-bar panel, search UI, paste-back, clipboard ingest

The extension auto-connects to the daemon on enable. If the daemon is managed by systemd (or another init system), the extension detects it and skips spawning its own copy. If no daemon is running, the extension looks for strata-daemon in $PATH and spawns it directly.

GNOME Shell (GJS)  ──D-Bus──▶  strata-daemon  ──▶  SQLite (~/.local/share/strata)
                                       │
                                       └──▶  thumbnails (~/.cache/strata)

Requirements

  • GNOME Shell 50 (tested). May work on 4549 but untested — if you try it and it works, please open an issue to let us know.
  • strata-daemon binary in $PATH (see Install below)
  • Rust 1.74+ (build only)
  • glib-compile-schemas (from glib2-devel / libglib2.0-dev-bin)
  • SQLite is bundled via rusqlite, no system dep needed

Install

Arch Linux (AUR)

Strata is split into a daemon package and an extension package; install both. Two channels are available -- pick one channel and don't mix them:

  • Stable (tagged releases): strata-daemon + gnome-shell-extension-strata
  • Git (latest main): strata-daemon-git + gnome-shell-extension-strata-git
# Stable
paru -S strata-daemon gnome-shell-extension-strata

# or Git
paru -S strata-daemon-git gnome-shell-extension-strata-git

(Use your AUR helper of choice, e.g. yay instead of paru.) Then log out / log back in (Wayland) or Alt+F2r (X11) and enable:

gnome-extensions enable strata@edu4rdshl.dev

The daemon is installed to /usr/bin/strata-daemon (already in $PATH), so the extension finds it automatically.

From source (local build)

git clone https://github.com/Edu4rdSHL/Strata.git
cd Strata

# Build and install the daemon binary to ~/.local/bin
make install-daemon

# Install the GNOME Shell extension
make install

Make sure ~/.local/bin is in your $PATH, then log out / log back in (Wayland) or Alt+F2r (X11) and enable:

gnome-extensions enable strata@edu4rdshl.dev

Via systemd user service (distro packages / manual)

Distro packages install the daemon binary to /usr/bin/strata-daemon and the systemd unit from contrib/systemd/strata-daemon.service to /usr/lib/systemd/user/. Enable it once:

systemctl --user enable --now strata-daemon

Then install and enable the extension as above. The extension detects the running daemon and will not spawn a second copy.

Pack for extensions.gnome.org

make pack          # produces strata@edu4rdshl.dev.shell-extension.zip (JS only)

Uninstall

gnome-extensions disable strata@edu4rdshl.dev
rm -rf ~/.local/share/gnome-shell/extensions/strata@edu4rdshl.dev
rm -rf ~/.local/share/strata ~/.cache/strata    # also wipes history

Other desktops?

The daemon is desktop-agnostic. It speaks plain D-Bus and runs anywhere the session bus does. Any client (KDE applet, CLI tool, your own script) can drive it. See strata-daemon/README.md for the wire protocol and a busctl example.

The shipped UI is a GNOME Shell extension. Ports to other desktops only need a new front-end against the same D-Bus interface.

Deeper reading

AI Policy Disclosure

Parts of this codebase and documentation were written with the assistance of AI tools. This is the policy we follow and will continue to follow: every line of code and every document produced with AI assistance is rigorously reviewed by a human before being published. No AI-generated output is committed without understanding, verification, and approval by the project author.

License

GPL-3.0-or-later.