tui-tools

tui-snapper

btrfs snapshots, managed by snapper, from the terminal

A terminal UI (TUI) for snapper on Linux: the btrfs snapshots snapper manages.

v0.2.6betasnapshotsMIT

Betatui-snapper may still change keys, flags or output before its 1.0. Pin the version you depend on, and report what breaks.What stable means

The snapshot history: pre/post pairs, timeline snapshots and the pinned ones, newest first
The snapshot history: pre/post pairs, timeline snapshots and the pinned ones, newest first

A terminal UI for the btrfs snapshots snapper manages. It lists every config and its history — pre/post pairs from package upgrades next to the hourly timeline snapshots — compares any two of them, and shows what changed file by file, with a read-only diff for anything you want to look at closely.

It creates, deletes, relabels and cleans up snapshots too, and puts individual files back with undochange without touching the rest of the filesystem. The configs themselves are authored from the same screen: create one for a subvolume, edit its retention limits, delete it. Every one of those is shown as the exact snapper command line and confirmed before it runs; starting the tool only reads.

Rollback is the one thing that genuinely differs between machines, so it is detected rather than assumed: where snapper rollback is the mechanism it is offered with a full warning, and on an Omarchy or limine-snapper-sync layout the boot menu entries are read from /boot/limine.conf and shown read-only, because that is where the rollback really happens.

--demo runs the whole UI against a sample history, so you can try it without a btrfs filesystem to risk.

Keys

KeyAction
d / enterCompare two snapshots; a post snapshot pairs with its own pre
spaceMark a snapshot: two marks are a range, many are one delete
cCreate a snapshot: description, type and cleanup algorithm
DDelete the selected snapshot, or every marked one
e / aChange a snapshot's description / cleanup algorithm
CRun a cleanup: number, timeline or empty-pre-post
uIn the diff: put the selected files back with undochange
RRollback, or how this machine actually rolls back
sThe config screen: switch config, and author one
n / a / DOn the config screen: create a config, edit its limits, delete it
Tsnapper's systemd timers, read-only
/Filter the list
? / qHelp / quit

Press ? inside the tool for the full help screen, which is generated from the same action table as the key map.

Compatibility

This tool is a face on the program below, so its version matters. Tested is not a claim: a version lands there only after the tool's own suite passed against it on a real machine in the lab, and the run is kept as evidence in the repository. At startup the tool probes the backend once and says what it found in its header — a version nobody has run against is shown as (untested) in the warning colour, one older than the minimum as (below minimum) in the error colour. Neither stops it: the backend still refuses what it cannot do, in its own words.

snapper

snapper ≥ 0.8.6
Binary
snapper
Minimum
0.8.6
Probed with
snapper --version
Tested
0.10.60.13.00.13.1

Needs a version this new

  • undochange-root-pathssince 0.10.6

What changes on older versions

  • snapper <0.8.6

    snapper has no --jsonout, and both the config list and the snapshot list are read as JSON, so nothing can be listed at all

  • snapper <0.10.6

    snapper undochange cannot recreate a path that sits directly under the subvolume root, so putting back a deleted top-level file or directory fails with "failed to create"

  • snapper <0.10.7

    snapper diff is broken for LVM-based configs, so the file view comes back empty there even when the compare screen lists the change

Maintain snapper? You are welcome to help shape this tool. About → maintainers

Guides

Written after the work, from a machine the commands were actually run on. Every guide that mentions tui-snapper is listed here.

  • Snapshots and undoing a change with tui-snapper

    Put a btrfs subvolume under snapper, take a snapshot before a change, see what the change did file by file, put the files back with undochange, and keep the history short with retention limits and a cleanup. One walk through tui-snapper on a real filesystem, with every confirm dialog as the tool showed it.

Install

Once per machine, then every tool in the family is one pacman away.

Add the repository
$ curl -fsSL https://pkgs.tui.tools/install.sh | sh
Or run the same thing yourself, one command at a time

A family whose whole promise is preview before you run is not going to insist you pipe a script into a shell. These are the commands that script runs.

The one-time setup, by hand
$ k="$(mktemp -d)/tui-tools.asc"
  curl -fsSL --proto =https --tlsv1.2 -o "$k" https://pkgs.tui.tools/pubkey.asc
  [ "$(gpg --show-keys --with-colons "$k" | awk -F: '$1 == "pub" { p = 1; next } p && $1 == "fpr" { print $10; p = 0 }')" = 767CFB337B01F32FFC073F3F389120B277E4FB44 ] && echo "key OK" || { echo "WRONG KEY: stop here"; rm -f "$k"; }
  sudo pacman-key --add "$k"
  sudo pacman-key --lsign-key 767CFB337B01F32FFC073F3F389120B277E4FB44
  printf '[tui-tools]\nServer = https://pkgs.tui.tools/arch/$arch\n' | sudo tee -a /etc/pacman.conf
  sudo pacman -Sy

The first lines check the signing key: go on only if they print key OK.

Arch Linux · tui-snapper
$ sudo pacman -S tui-snapper

Upgrades then arrive with the rest of your system updates.

What it can do to your machine

  • Preview, then confirm

    Every change is shown as an exact command line and confirmed before it runs. The dialog and the runner receive the same value, so the preview cannot drift from what executes.

  • Escalates for actions

    Reads too, not only writes: snapper opens its subvolumes directly, so even listing snapshots needs root. Run with sudo, or leave sudo = "sudo -n" configured. Everything that changes something — snapshots, and the configs themselves — is confirmed first. --demo escalates nothing.

  • No daemon, no state of its own

    Nothing keeps running after you quit, and nothing is installed to run later. The system is the source of truth; the tool re-reads it after every change.

  • No network access

    The tool opens no network connection of its own. No telemetry, no update check, no phone home.

  • Static binary

    Released statically linked, with no runtime dependencies to install.

  • Signed release, with provenance

    checksums.txt carries a keyless cosign signature from this repository's release workflow, every archive has a CycloneDX SBOM, and every archive, package and the checksum file carry SLSA build provenance. The security page shows the three commands that check it.

Reporting

Report a security issue privately, through GitHub's private vulnerability reporting on the repository's Security tab. The family-wide policy, and what counts as in scope, is on the security page.

Downloads

v0.2.6 · 2026-11-20
FileSizeSHA-256
checksums.txt1 KB—
checksums.txt.sigstore.json10 KB—
provenance.intoto.jsonl12 KB—
tui-snapper-0.2.6-1-aarch64.pkg.tar.zst1.7 MB5c68d5682e05aad1cb8eeb525c3a9672a134665640c68144253325d3558649e6
tui-snapper-0.2.6-1-x86_64.pkg.tar.zst1.9 MB65ad25265bd123e90370ed5ee82a1a308d4d922f62ffbe09ca60b61a8e54e2fc
tui-snapper-0.2.6-1.aarch64.rpm1.8 MB167d545aef2e5a6a4512eac60609ced2a8be522b9e88a471bd51f931ffeb4997
tui-snapper-0.2.6-1.x86_64.rpm2.0 MBba45b6101a3b524450e9d77239846310e33e24ff8372cbbfb0cfd7319632e1ef
tui-snapper_0.2.6_amd64.deb1.9 MBc8516be4a954b2b8816d669110d3af3a06d8741a166325759bb1e62037dee019
tui-snapper_0.2.6_arm64.deb1.7 MB5500902f7aa457c6eac4615100c7972d3e9d5ec4b73482c9a7c17c7de134be57
tui-snapper_0.2.6_linux_amd64.tar.gz1.9 MBaab69d9354a9bca1a60b2f20e0ccd54696bd2e79c8cdb795b7f3db95667afe65
tui-snapper_0.2.6_linux_amd64.tar.gz.cyclonedx.json24 KB92ee8f007cff12eed3e1019ff02dce277e8f67a03077d9defc1d05c15fdcc5c7
tui-snapper_0.2.6_linux_arm64.tar.gz1.7 MBf274a1f367fd0fdd33fa26e60d78facb222c9f6cdada9cf3e150ff66a8db5551
tui-snapper_0.2.6_linux_arm64.tar.gz.cyclonedx.json24 KB114ce76bdfbf5752a2b56261c855cf3d6192e2d19a9f52e18af917499cd49085

Every release ships a checksums.txt. Download it next to the archive and run sha256sum -c checksums.txt --ignore-missing. See verifying a download.

Releases

v0.2.6

2026-11-20
## tui-snapper v0.2.6

tui-snapper 0.2.6

- Built with tui-kit v0.5.0, the kit's security release, and Go 1.27.4, which fixes GO-2026-6859 in the standard library. When the tui-tools package repository is set up, its key is accepted only when it is the pinned key alone. As root, privileged commands are resolved only from trusted root-owned system paths and start from a minimal environment; config files must be owned and writable by root alone, and TUI_SNAPPER_* variables carried over from sudo, doas, pkexec or su are refused (the error points at /etc/tui-snapper/config.toml). Running without root is unchanged.
- The manual apt, dnf and pacman setup in the README checks the downloaded key against the pinned fingerprint before any step trusts it.
- The delete-config confirmation wraps its text to the terminal instead of cutting it, so the whole warning and the box border stay visible at any width (#28).
- CI actions on their latest versions.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* c80e9bebb45d63954736150eb6ab7180fb2b9e93 0.2.6: tui-kit v0.5.0 (security release) (#34)
* 20497a6925912917435fb6bf9f81ac6148912a64 Bump github.com/tui-tools/tui-kit (#30)
* 48499f3fc10242ef007497642dbc4da69c9bf4b6 Bump the github-actions group across 1 directory with 5 updates (#31)
* d779cdd92bb834679b2d3d6e2e7b5bfb41791d80 Take tui-kit v0.5.0 and Go 1.27.4 (#32)
* 550add4ed3b2f586790dc82d74de1cd1143546d5 Wrap the delete-config dialog instead of cutting it (#28)

v0.2.5

2026-10-22
## tui-snapper v0.2.5

tui-snapper 0.2.5

- Built with Go 1.27.3, which fixes CVE-2026-111943 in the standard library (crypto/x509), and tui-kit v0.4.5; dependencies on their latest versions. No change in behavior.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* d84bb2c0f20804d3c93bfa34c3b4f43b16ab9a8c 0.2.5: Go 1.27.3 (stdlib security fixes) (#26)
* 75432fee2c0da296b32835d4d2a9a9c3cb19921e Bump the github-actions group across 1 directory with 9 updates (#23)

v0.2.4

2026-10-20
## tui-snapper v0.2.4

tui-snapper 0.2.4

- Built with Go 1.27.2, which fixes CVE-2026-78667, CVE-2026-78669 and CVE-2026-97031 in the standard library (net/http, crypto/tls). No change in behavior.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* d84ec982fb1eb9a3631ccc4e865df63f4f001549 0.2.4: Go 1.27.2 (stdlib security fixes) (#25)

v0.2.3

2026-10-20
## tui-snapper v0.2.3

tui-snapper 0.2.3

- **Creating a config checks the subvolume before the preview (#18).** A path that is a plain directory and not a subvolume, or a subvolume that already has `.snapshots` (the archinstall and Omarchy layout with `@snapshots` mounted there), is refused in the form with the reason and the exact commands to fix it, instead of failing in snapper after confirm. The commands are shown, never run by the tool.
- The lab smoke test now creates a config.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* 6a34b8179ae4ef0359a2d9682631f14748aec6c9 Check a new config's subvolume the way snapper will
* cda0f54ee65daec3f24fe77d6d9057c93502fbf6 Merge pull request #24 from tui-tools/fix/create-config-precheck

v0.2.2

2026-09-25
## tui-snapper v0.2.2

tui-snapper 0.2.2: tui-kit v0.4.4

tui-snapper 0.2.2 moves to tui-kit v0.4.4: every snapper command now runs in its own session without a controlling terminal, so a step that would prompt fails at once instead of hanging behind the UI, and a failed step reports its meaningful line, cleaned of escape codes. Command previews are POSIX shell-quoted (a description with spaces now reads as `'known good'`), the README screenshots are re-rendered with continuous box borders, and the README banner now carries the kit's stability markers.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* dc0d72c04175d11e31562344cb478ccbe914ef41 0.2.2: tui-kit v0.4.4 (#20)
* f1cd383ce32f3781711033433a133faa7ac7dc9d Bump anchore/sbom-action/download-syft (#4)
* 457aa63ad59c51d17a191405b622a96df3731243 Bump anchore/sbom-action/download-syft in the github-actions group (#17)
* e3888fc6ad05c941e0d1526991298d27081c96be Bump the github-actions group with 4 updates (#19)
* 52567b6325ae832ae6699a78ef85a990875a67ce README: link the tool's page on tui.tools (#16)
* 2097ee5ae636a72332eabe8f1360b8e6d9a35a0a README: point the install snippet at the current release (#15)

v0.2.1

2026-09-02
## tui-snapper v0.2.1

tui-kit v0.3.0: the dialogs wrap and scroll instead of clipping the
command preview, and the picker filters as you type.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* e26af48e8d44a946c469a7d0911656271d2a00f3 Bump tui-kit to v0.3.0 (#14)

v0.2.0

2026-09-01
## tui-snapper v0.2.0

Manage, not view (wave 3): create what does not exist, edit what does; lab-validated.

Built by this repository's CI on the tag itself. Each archive ships a
CycloneDX SBOM, `checksums.txt` carries a keyless cosign signature, and
every file has SLSA build provenance — see the README's "Verify a
download" for the two commands that check them.

The commits in this release:

## Changelog
* 4b9b8ca1afd31b483a57d896c7cff066aa373636 A code of conduct that fits on one screen (#10)
* 144b0689a16c21992bab3973ba3fe14e43f85198 Add --report, and a bug form that asks for it (#11)
* a8a64dd4af30be9920ed9aa0740b3e814dffed27 Carry the OpenSSF Best Practices badge (#8)
* a763de9d41536aee68bfa40bf2b1a9f3b76fd8d8 Create and edit snapper configs from the TUI (#13)
* d30eee7f4c3ca9914e5720919cbff8a248d175ec Fetch the tag annotation before releasing (#6)
* ae98bed5f0a7f45fdbaa32d7522de38f78e73e0c Pin what CI runs, fuzz the parsers, and say the releases are signed (#3)
* ccd4439329adedd03555fbc9b5242882d80b43d4 Print the whole tag message, not only its body (#7)
* 56a13653a7dba6ee34a4a796250583497522b57b Say beta once (#5)
* 28a843f9063e5b3638e8498737e38ea367c2c5fb Take tui-kit v0.2.8: hashed pip install, provenance bundle on the release (#9)
* db5df7775c6052a0dc41159aeee395333c74fea2 The leak check searches every line but the two uname never names (#12)

v0.1.2

2026-08-30
## Changelog
* b388bf182d2c500cf43897d96b13b071b84067f7 Drop cross-repo dispatch; the package repo and the site poll releases
* 8f996ca8a0dc2685bf6f0ac9c841394937661a1f Gate the release on a security job, and sign what it publishes (#2)
* 1019222544a6e38dc00cfa894319607c67f20cb6 Stop telling readers the packages are unpublished

v0.1.1

2026-08-30
## Changelog
* 0e8d3a873253c297e174a7c76f0f733af37f0a1a Bump the github-actions group with 5 updates (#1)
* cce03797b03ded206265b06a3b333aa5a3849e40 Hold this tool to the family's lint bar
* 60c6d09fa8666890df4be66f0dede0efe1f29e0b Join the lab, and fix what the real Omarchy machine showed
* 36fb218dcde5cc0ac7853043c80fef778b927638 Packages are available from pkgs.tui.tools
* 5669e30bd8fc9e259cb1b4b41ac37212eb768887 Point the install line at v0.1.0
* f8296f32ddeebd30eb1c4949809b05ebed4319d2 Re-pin the kit at v0.1.3 and put the help screen back under the width test
* 5a84f3c11d87b62feb8b9531039634907031214d Re-pin the kit at v0.2.3
* 80794b77cace82177b986d9a14c338049603fba7 Ship the tool as a .deb, an .rpm and a pacman package
* ad670b41277a46c1d82f6441d04e0f6c9266abb0 Tell the user which snapper they are running
* 9f66d07254381b1ddc35ae7bd463206d46eda2c2 Use a neutral home directory in the path-with-spaces fixture

v0.1.0

2026-08-30
## Changelog
* 3927add228d0434cde0cdb80c0188900841ef102 Add --no-dbus, for a machine with no running snapperd
* 492a639daa4ee7656f42c78e22802408d761e8c2 Initial commit
* 1ca855042732942359cb2af5e5c7d87699d35a95 Replace the template with tui-snapper