Terminal screensaver that activates when you're idle — constellations, rain, particles & more. Press any key to resume. Just drift away!
Terminal screensaver that activates when you're idle — constellations, rain, particles & more. Press any key to resume. Just drift away!
drift ships 14 scenes and 9 built-in themes. They cycle automatically or you can lock to one.
waveform — braille sine waves that breathe
constellation — stars drift and connect
rain — katakana characters fall in columns
particles — a flow field of drifting glyphs
pipes — box-drawing pipes snake across the screen and wrap at the edges
maze — a perfect maze builds itself, holds, then dissolves and regenerates
life — Conway's Game of Life; cells flash bright on birth, age through the palette, reset when the grid stagnates
clock — current time in large braille digits, styled in the active theme, with the date below
orrery — a stylized solar system with a fixed sun, concentric orbit rings, and braille-rendered planets
starfield — classic 3-D star warp; stars accelerate toward you from the centre, brightening and leaving trails as they approach
dvd — the classic bouncing logo; changes palette color on each wall bounce and flashes bright on a corner hit
boids — Reynolds flocking simulation; triangle-arrow heads leave fading trails as separation, alignment, and cohesion rules steer the flock
plasma — classic demoscene sine-sum color field; four overlapping waves with a drifting radial centre map through the active theme palette
bonsai — a leaning, tapered trunk grows out of a shallow pot and spreads flat foliage pads;
Nine built-in themes matched to popular terminal colorschemes.
cosmic · nord · dracula · catppuccin · gruvbox · forest · wildberries · mono · rosepine
drift list themes # preview all themes with color swatchesbrew install phlx0/drift/driftyay -S drift-bin # or: paru -S drift-binnix run github:phlx0/driftOr add to your configuration:
inputs.drift.url = "github:phlx0/drift";Go to the Releases page.
Download the archive for your platform:
| OS | Chip | File |
|---|---|---|
| macOS | Apple Silicon (M1/M2/M3) | drift_darwin_arm64.tar.gz |
| macOS | Intel | drift_darwin_amd64.tar.gz |
| Linux | x86-64 | drift_linux_amd64.tar.gz |
| Linux | ARM64 | drift_linux_arm64.tar.gz |
| Windows | x86-64 | drift_windows_amd64.zip |
Extract and move it somewhere on your PATH:
tar -xzf drift_darwin_arm64.tar.gz
sudo mv drift /usr/local/bin/
drift versiongo install github.com/phlx0/drift@latestMake sure Go's bin directory is on your PATH:
# add to ~/.zshrc or ~/.bashrc
export PATH="$PATH:$(go env GOPATH)/bin"git clone https://github.com/phlx0/drift
cd drift
go install .Requires Go 1.23+. No C compiler or CGO needed.
Shell integration is what makes drift a real screensaver — your shell detects idleness and launches drift automatically. Press any key to return to your prompt.
# add to ~/.zshrc
export DRIFT_TIMEOUT=120 # seconds of inactivity (default: 120)
eval "$(drift shell-init zsh)"# add to ~/.bashrc
export DRIFT_TIMEOUT=120 # seconds of inactivity (default: 120)
eval "$(drift shell-init bash)"# add to ~/.config/fish/conf.d/drift.fish
set -x DRIFT_TIMEOUT 120 # seconds of inactivity (default: 120)
drift shell-init fish | sourceShell integration is not available on Windows. Run drift directly from any terminal (Windows Terminal, PowerShell, cmd) to start it immediately, or use drift --showcase to browse interactively. Press esc to exit.
…| Flag | Default | Description |
|---|---|---|
--scene, -s |
cycle all | lock to a specific scene |
--theme, -t |
cosmic |
color theme |
--fps |
30 |
target frame rate |
--duration |
60 |
seconds per scene, 0 = no cycling |
--showcase |
false |
interactive browser: ↑↓/ws scene · ←→/ad theme · esc quit |
drift config --init # writes ~/.config/drift/config.toml…Define your own themes in config.toml under [theme.]. Custom themes appear alongside built-ins in drift list themes and in showcase mode navigation.
[theme.terminal]
bright = "#ffffff"
palette = ["#ff5555", "#50fa7b", "#f1fa8c", "#bd93f9"]
dim = ["#3d0000", "#003d00", "#3d3d00", "#1e003d"]| Key | Description |
|---|---|
bright |
Near-white highlight color (#RRGGBB) |
palette |
Accent colors — scenes index with palette[i % len(palette)] |
dim |
Darker variants for trails and depth — must be the same length as palette |
Then use it like any built-in: drift --theme terminal.
drift --showcase runs drift continuously — nothing exits it except esc. Use it to browse scenes and themes or leave it running on a visible window.
| Key | Action |
|---|---|
↑ / w |
previous scene |
↓ / s |
next scene |
← / a |
previous theme |
→ / d |
next theme |
esc / q / ctrl+c |
quit |
A status bar shows the current scene and theme for 3 seconds after each keypress, then fades out.
Config changes have no effect
Run drift config to check whether your config file is being found:
Config file: /Users/you/.config/drift/config.toml (not found — using defaults; run 'drift config --init' to create it)If the file is missing, create it with drift config --init. If it exists but changes still don't apply, check for a TOML syntax error — drift config will print the parse error if there is one.
drift doesn't activate automatically
Make sure the shell integration is sourced in your rc file and that DRIFT_TIMEOUT (or TMOUT in zsh) is set:
export DRIFT_TIMEOUT=120
eval "$(drift shell-init zsh)" # or bash / fishThen open a new terminal session for it to take effect.
New scenes and themes are very welcome. See CONTRIBUTING.md for the development guide.
No open issues yet, or sync has not completed.