- Rust 85.6%
- TypeScript 7.5%
- JavaScript 4.1%
- Nix 2.2%
- Shell 0.6%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .github/workflows | ||
| assets | ||
| examples | ||
| scripts | ||
| sdk | ||
| src | ||
| themes | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| config.example.toml | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
slerm
A Ghostty-powered terminal with tiled and floating panes, written in Rust.
slerm renders terminals with libghostty-vt, Ghostty's terminal engine, and draws them with egui on wgpu. It has its own built-in multiplexer, so you get tabs, tiled splits and floating panes without tmux, plus a TypeScript plugin system for adding your own panels.
Features
- Ghostty's terminal emulation: the same VT parser and Kitty graphics protocol support.
- Tabs, tiled panes and floating panes, with zoom and keyboard focus movement.
- Clickable links: Cmd+click (Ctrl+click on Linux) opens URLs and OSC 8 hyperlinks.
- OSC 52 clipboard: programs can copy to your clipboard, including over SSH and from tmux.
- Themes:
slermplus every theme Helix ships (slerm --list-themes), with per-color overrides. - Font control: pick a family or file, with bold/italic matching and fallback fonts for Nerd Font icons.
- Plugins in TypeScript, run in embedded Boa, with native sidebars and floating panels. Examples include a file tree, a git panel and a Hacker News reader. See the plugin SDK docs.
- Native macOS app: a real
.appbundle with Dock icon, menu bar and multiple windows.
Install (macOS, Apple Silicon)
With Homebrew:
brew install --cask gregorlohaus/tap/slerm
The cask also links the slerm command and clears the quarantine flag for you.
Or download slerm-<version>-macos-arm64.zip from the Releases page,
unzip it, and drag slerm.app into /Applications. The app is ad-hoc signed, not notarized, so Gatekeeper blocks the first launch. Either
right-click the app and choose Open, or clear the quarantine flag:
xattr -dr com.apple.quarantine /Applications/slerm.app
Build from source
With Nix (flakes enabled), which provides the Rust and Zig toolchains:
nix build # result/Applications/slerm.app on macOS, result/bin/slerm elsewhere
nix run # build and launch
nix develop # dev shell with cargo, clippy, rustfmt, node and zig
Without Nix you need Rust 1.92+ and Zig 0.15.2+, because the build compiles Ghostty from source:
cargo build --release
scripts/bundle-macos.sh # macOS only: wraps target/release/slerm in slerm.app
Configuration
Create a commented config with every option, then edit it:
slerm --init-config # writes ~/.config/slerm/config.toml (or $XDG_CONFIG_HOME/slerm/)
slerm --check-config # validate it
Or read config.example.toml. Reload a running slerm with
Ctrl+Shift+R.
Default key bindings:
| Key | Action |
|---|---|
Alt+M |
New pane |
Alt+F |
Toggle floating panes |
Alt+H J K L |
Focus left, down, up, right |
Alt+A |
New tab |
Alt+Shift+H / Alt+Shift+L |
Previous / next tab |
Alt+X |
Close pane |
Alt+S |
Open scrollback in your editor |
Ctrl+Shift+Z |
Zoom pane |
Ctrl+Shift+C / Ctrl+Shift+V |
Copy / paste |
Cmd/Ctrl + click |
Open the link under the pointer |
Ctrl+Shift+R |
Reload config |
Directional focus and next/previous pane also reach plugin panels: side panels sit beyond the outermost panes, and next/previous visits every panel after the panes. While floating panes are shown, navigation stays among them.
Plugin commands can be bound too, for example "Super+G" = "plugin:git/toggle-git".
Plugins
Plugins are JavaScript bundles listed under [[plugins]] in the config and managed
from the Plugins menu. Write them in TypeScript against the generated SDK:
npm ci --prefix sdk
npm run example --prefix sdk # builds sdk/dist/{panes,filetree,git,hackernews}.js
The full API is documented in sdk/README.md. Plugins run with your
user's privileges, so only load ones you trust.
Using the slerm theme in Helix
themes/slerm.toml is a Helix theme with slerm's colors, so an
editor running inside slerm blends in with it. See the header of that file for install
steps.
Icon
The icon is assets/slerm.svg. nix run .#make-icon regenerates
the PNG and ICNS; see assets/README.md.
Releases
Every push to main runs
.github/workflows/release.yml, which builds the
macOS app on GitHub Actions and uploads it as a build artifact. To cut a release, push a
v<version> tag (e.g. git tag v0.1.5 && git push origin v0.1.5): the build takes its
version from the tag, writing it into Cargo.toml for that build only, and publishes the
v<version> release on GitHub Releases with the zip and its SHA-256 checksum. With a
Gitea-to-GitHub push mirror, make sure the mirror syncs tags.
On a tag, the same workflow then points the slerm cask in
GregorLohaus/homebrew-tap at that release,
using scripts/homebrew-cask.sh, so edit the cask there. This
needs a HOMEBREW_TAP_TOKEN repository secret: a fine-grained token with Contents
read/write on the tap. Without it the workflow skips the cask update with a warning.
License
MIT. Bundled Helix themes keep their original licenses in
themes/LICENSES.