khzgo

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

khzgo

A minimal terminal music player. Browse your library, queue tracks, and play through mpv with cover art rendered right in the terminal.

Screenshot

khzgo

Install

Runtime dependencies: mpv, ffmpeg, chafa — khzgo checks for them at startup and tells you if anything is missing (cover art degrades gracefully without chafa/ffmpeg).

go install (requires Go 1.26+):

go install github.com/Prs96/khzgo@latest

Release binaries: grab a tarball for linux/amd64 or linux/arm64 from the releases page, extract, and put khzgo on your PATH.

Debian / Ubuntu: download the .deb from the releases page:

sudo dpkg -i khzgo_*_linux_amd64.deb

Arch Linux (AUR): install khzgo (builds from source) or khzgo-bin (prebuilt) with your AUR helper.

Build from source

git clone https://github.com/Prs96/khzgo.git
cd khzgo
go build
./khzgo ~/Music

Or skip the binary and run directly:

go run . ~/Music

Run khzgo with no arguments to start in ~/Music when it exists, otherwise in the current directory. Use -h for flags and -v for the version.

Keys

Key Action
enter / l play selected
a add to queue
d remove from queue
s shuffle-play this folder
A play all (folder order)
n next (random if queue empty)
p previous track
< / > seek backward / forward 10s
x stop playback
r toggle repeat track
D clear queue
space pause / resume
- / = volume down / up
backspace / h up one directory
j / k / arrows navigate
/ filter (searches whole library)
? toggle help
q quit

Session

On quit, khzgo saves your session to ~/.config/khzgo/state.json with last folder, queue, history, volume, repeat mode, and the current track with its position. The next launch restores all of it and resumes playback where you left off (paused tracks come back paused).

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
art
ui

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL