Skip to content
Proyectos

Acerca de

Atomic dotfiles switching for Linux. Swap your whole rice in one command and eject it just as easily.

Herramientas de desarrollo

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
+1
in 7 days
+2
in 15 days
+10
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

Tapes

Tapes

An atomic dotfile switcher for Linux ricing.

Swap your entire setup in one command. Get it all back in one command.

License Rust Release Discord Stars

Install · Quickstart · How it works · FAQ · Discord

Official GUI now available → tapes-deck

Tapes in Action

https://github.com/user-attachments/assets/42851fc4-7b7a-4c7f-9224-e9e4d586bf1d

Quickstart

# Grab a rice from a public repo
tapes install https://github.com/some_user/cyberpunk --name cyberpunk
#    --branch <branch>   pick a specific branch
#    --dir <subdir>      pick a specific subdirectory

# Or grab an official, ready-made tape
tapes install-featured caelestia

# See what's inside before you commit (props + hooks)
tapes show cyberpunk

# Pop it in
tapes insert cyberpunk

# Pop it out — your old ~/.config is restored exactly as it was
tapes eject

That's it. Everything else is optional.

You can also browse ready-to-use tapes in the featured-tapes repository.

Useful flags

Flag What it does
--dry-run Show the plan without touching any files
--no-hooks Skip all hooks
-p, --path Insert straight from any folder
-q / -v Quiet / verbose output
-l, --logging Show logs (attach these when reporting issues)

The tape format

A tape is just a ~/.config snapshot with a manifest:

cyberpunk/
├── tape.toml
├── hypr/
│   └── hyprland.conf
├── waybar/
│   └── config.jsonc
└── nvim/
    └── init.lua
[tape]
name = "cyberpunk"                               # required
desc = "A cool cyberpunk rice"
dependencies = ["hyprland", "quickshell"]        # informational

[hooks]
insert = [
  "hyprctl reload",
  "qs kill",
  "waybar &",
  "notify-send 'Tapes' 'Switched to cyberpunk rice'"
]
eject = [
  "hyprctl reload",
  "pkill waybar",
  "qs -c caelestia -d",   # run long-lived commands in the background
  "notify-send 'Tapes' 'Back to caelestia'"
]
# install = [] # also exists

📦 Installation

Install script (latest release, re-run to update)

curl -fsSL https://raw.githubusercontent.com/futurekismo-oss/tapes/main/install.sh | bash

Cargo

cargo install [email protected]
cargo binstall [email protected]   # prebuilt binary

The crate is tapes-dotfiles, the binary is tapes. The old tapes-v2 crate is abandoned.

Nix

# From source
nix run github:futurekismo-oss/tapes
nix profile install github:futurekismo-oss/tapes

# Prebuilt Binary
nix run github:futurekismo-oss/tapes#tapes-bin
nix profile install github:futurekismo-oss/tapes#tapes-bin

From source

git clone https://github.com/futurekismo-oss/tapes && cd tapes
cargo install --path .

Check that tapes --version works; add ~/.local/bin or ~/.cargo/bin to your $PATH if it doesn't.

Tab completion

# add to your shell init (.zshrc, .bashrc, ...)
source <(COMPLETIONS=zsh tapes)   # also: fish, bash, elvish, nushell

Global configuration

Optional, at ~/.local/share/tapes/config.toml. Generate a starter with:

tapes config init    # also: tapes config path / tapes config show
View example
# default_tape = "my-default"

[install]
shallow_clone = true        # --depth 1 git clones by default
backup_on_force = true      # keep a .bak on --force reinstall

[install.providers]
lab = "https://git.myserver.com/"   # e.g. `tapes install lab:user/rice`

[hooks.global]              # run for ALL tapes
post_insert = [ "notify-send 'Tapes' 'Switched tape to $TAPE_NAME'" ]
post_eject  = [ "notify-send 'Tapes' 'Restored base configuration'" ]

[targets]                   # never symlink these into ~/.config
ignore = ["wallpapers", "assets", "scripts", ".DS_Store"]

Hook environment variables: $TAPE_NAME, $TAPE_DIR, $CONFIG_DIR.

How it works

  • Tape — a full ~/.config-style folder (a rice, your dotfiles) with a tape.toml.
  • Target — any file or folder in the tape (like hypr/, nvim/, .zshrc) that gets swapped into your ~/.config. Tape Targets come from the inserted tape while Config Targets are your original configs that remain untouched if the tape doesn't override them.
  • Hooks — shell commands run after insert, eject, or install.

Why it matters: install scripts override your configs or backup the whole folder and makes a fresh one. This means you might lose your hyprland or chromium keys forcing you to lose your keybinds or have to login again to your gmail. Tapes keeps everything the tape doesn't provide and leaves your chromium/ keys or whatever untouched. It requires one command to try out a new config and another to return back to your previous one and because it only touches ~/.config, it works on every distro, every WM/DE as well as every rice. However tapes utilizes the linux renameat2 syscall so it only works on linux (for now)

FAQ

Can I use it with my current rice?

Yes. Your current setup doesn't need to be a tape at all — it is the base you revert to on eject. If you want it insertable too, copy its folders into a new directory with a tape.toml and it works like any other tape.

Will multiple configs overwrite my stuff?

No. Only what the tape provides (its targets) is swapped while inserted. Everything else in ~/.config stays exactly as it is, and eject restores your originals. Nothing is ever deleted. One tape can be inserted at a time.

Do I need to back up my config first?

Recommended, yes. Tapes is built to be safe, but it's still in beta.

Does it work outside Arch?

Any Linux distro. Anything living in ~/.config can be swapped — Hyprland, KDE, Waybar, starship, nvim, you name it. If ~/.config itself is a symlink (common on NixOS), insert refuses to run; otherwise home-manager users should be fine, just rebuild cautiously while a tape is inserted.

Updating my dots / updating tapes?

Edits made while inserted go straight into the tape (it's all symlinks). To pull new versions from the repo:

tapes eject
tapes install <repo> --name cyberpunk --force   # old copy kept as cyberpunk.bak

To update tapes itself, re-run the install script. A plain git pull in ~/.tapes/<name> often works too.

How is this different from chezmoi or stow?

Chezmoi and stow manage one set of dotfiles. Tapes manages infinitely many and swaps between them freely — that's the whole point.

How is this different from Rice Cooker?

Rice Cooker is a visual Arch + Hyprland + Quickshell browser. Tapes swaps your whole ~/.config, so it works with any WM/DE and any tool whose config lives there. It doesn't have curated rices yet — working on it.

Is Tapes vibecoded AI slop?

No. Fully human coded, two months of stress-testing to make the swap actually atomic.

Where are tapes stored? How do I publish one?

In ~/.tapes. To share a rice, PR a setup.sh and tape.toml to featured-tapes and users can tapes install-featured your-rice.

Something broke. What do I do?

Update first (tapes --version), then re-run with --logging and open an issue or ask on the Discord. A failed insert/eject leaves your original config untouched which is the worst case scenario, delete ~/.config and rename ~/.config.tapes back to ~/.config. Make sure to provide the logs at ~/.local/share/tapes/tapes.log (usually it's a hook failure or state corruption).

Roadmap

  • GUI → tapes-deck
  • Dependency checking
  • Colored output

Contributing

Contributions welcome — see CONTRIBUTING.md. If you like the project, a star 🌟 helps a lot.

I also recommend to join the Discord if you wanna contribute

Acknowledgements


futurekismo

evertiro

liixini

exotic-erox

LilaccFlowerr

dxnnv

Kuro

Mvk

Clover

Marv

Amit

Magnagy

SpanishSyntax

Related

Star History


Distributed under the GPL-3.0 License.

Explorar proyectos relacionados

Cargando…