Trekscape is a terminal-first ambient audio console with a minimalist visualizer-first interface, synthesized starship engine hum, optional SFX layering, and audio-reactive visualizers.
- Real-time synthesized engine bed with live workspace controls and preset cycling.
- Optional SFX scanner/player with per-category toggles and gain controls.
- Visualizer modes: Warp Transit, Frequency Bars, and Waveform, with the visualizer off by default.
- Visualizer-first hero deck with a collapsible inspector and keyboard-driven command palette.
- Transparent-first terminal chrome with no mouse dependency or solid background wash.
- Built-in themes (
lcars,movie_blue,tng_ops) plus user theme overrides. - Config persistence with safe defaults and automatic write-on-first-run.
Python 3.11+ is required.
Fresh clone, local install, and run:
git clone https://github.com/darsrc/trekscape.git
cd trekscape
python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
pip install -r requirements.txt
trekscapeOn Windows PowerShell, activate the virtual environment with:
.\.venv\Scripts\Activate.ps1Development install:
python -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pytest -qAudio backend note:
- Linux may require PortAudio from your system package manager before
sounddevicecan use an output device, for examplesudo apt install portaudio19-dev. - macOS usually works with the wheel install; if not, install PortAudio with Homebrew:
brew install portaudio.
From a GitHub release artifact, wheel:
pip install trekscape-0.4.0-py3-none-any.whlFrom a GitHub release artifact, sdist:
pip install trekscape-0.4.0.tar.gzOptional media codec support:
- Always supported:
.wav - Optional via
soundfile(pip install trekscape[sfx]):.flac,.ogg,.mp3
trekscapeAlternative entrypoint:
python main.py- Trekscape must be launched from an interactive terminal session.
- Unsupported launch environments such as redirected stdin/stdout or
TERM=dumbexit with a short startup error instead of a traceback. - Minimum terminal size:
96x28 - When below minimum size, Trekscape shows:
terminal too smallMinimum 96x28
- Main config:
~/.config/trekscape/config.toml - User themes:
~/.config/trekscape/themes/*.toml - SFX directory (default):
~/.local/share/trekscape/sfx/
Default SFX layout:
sfx/
├── beeps/
├── comms/
├── alerts/
└── ambient/
You can change SFX location from the CONFIG panel or by editing sfx.directory in config.
- Non-fullscreen rendering is internally bounded for large terminals.
Performance Modelowers render cost further.Max Render FPSis a cap; the footer shows live delivered FPS, effective target FPS, and render cost.- Warp Transit has
Star Count(0 = AUTO) to cap star particles. GPU Acceldefaults to enabled (visualizer.gpu_acceleration = true) with automatic CPU fallback when unavailable.
12345: focus ENGINE/SFX/MIX/VIZ/SYSTEMESDVC: alternate workspace shortcutsTab/Shift+TaborDown/Up: move focused controlPgUp/PgDn: jump between workspace sectionsHome/End: first/last control in workspaceLeft/Right: adjust focused valueEnter: activate the focused toggle or actionI: show/hide the inspector rail/: open the command palette?,H, orF1: help overlayF: toggle fullscreen hero deckM: muteP: cycle engine presetSpace: toggle impulse modeW: warp surgeCtrl+S/Ctrl+L: save/load configQ: quit
Run tests:
pytest -qBuild installable release artifacts from the current checkout:
rm -rf dist/
python -m build
python -m twine check dist/*Artifacts are written to dist/. The wheel can be installed with pip install dist/trekscape-*.whl; the source distribution can be installed with pip install dist/trekscape-*.tar.gz.
- The Star Trek ASCII ship art used in Warp Transit was not created by this project.
- Source: https://www.asciiart.eu/television/star-trek