···11-# cmus cover viewer
11+# cmus Cover Viewer
2233Small program in Go to display the cover art of the current track playing in
44-[cmus](https://cmus.github.io/).
44+[cmus](https://cmus.github.io/). This is how it'd look in [kitty](https://sw.kovidgoyal.net/kitty/) terminal and using
55+also [cava](https://github.com/karlstav/cava), using kitty windows:
5666-This is how it'd look in [kitty](https://sw.kovidgoyal.net/kitty/) terminal and using
77-also [cava](https://github.com/karlstav/cava):
77+
88+99+## Installation
81099-
1111+```bash
1212+go install tangled.org/mgabarda.com/cover-viewer@latest
1313+```
10141111-## How to use
1515+Or build from source:
1616+1717+```bash
1818+git clone git@tangled.org:mgabarda.com/cover-viewer
1919+cd code-viewer/
2020+go build
2121+```
2222+2323+## Usage
12241325This program has two modes: **visualizer** to show the cover, and notify to send the
1426change in the cover.
15271628### Run visualizer
17291818-```
3030+The visualizer will be running, waiting to the events from cmus, dispatched using
3131+`cover-viewer --mode notify`:
3232+3333+```bash
1934cover-viewer --mode visualizer
2035```
21363737+Currently this has been tested in **kitty**, but it should be compatible with all the
3838+terminal emulators supported by [go-termning](https://github.com/blacktop/go-termimg).
3939+2240### Notify from cmus
23412424-This is based on the [status display](https://github.com/cmus/cmus/wiki/status-display-programs#usage--installation) from cmus.
2525-2626-Assuming you use multiple programs, with a shell script, e.g.
2727-~/.cmus/status_display_program.sh, you can add there this visualizer:
4242+This is based on the [status display](https://github.com/cmus/cmus/wiki/status-display-programs#usage--installation) from cmus. Assuming you use multiple programs, with a shell
4343+script, e.g. `~/.cmus/status_display_program.sh`, you can add there this visualizer:
28442945```bash
3046#!/bin/sh