···11+# Created by https://gitignore.org
22+# Go.gitignore
33+44+# If you prefer the allow list template instead of the deny list, see community template:
55+# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
66+#
77+# Binaries for programs and plugins
88+cover-viewer
99+*.exe
1010+*.exe~
1111+*.dll
1212+*.so
1313+*.dylib
1414+1515+# Test binary, built with `go test -c`
1616+*.test
1717+1818+# Code coverage profiles and other test artifacts
1919+*.out
2020+coverage.*
2121+*.coverprofile
2222+profile.cov
2323+2424+# Dependency directories (remove the comment below to include it)
2525+# vendor/
2626+2727+# Go workspace file
2828+go.work
2929+go.work.sum
3030+3131+# env file
3232+.env
···11+# cmus cover viewer
22+33+Small program in Go to display the cover art of the current track playing in
44+[cmus](https://cmus.github.io/).
55+66+This is how it'd look in [kitty](https://sw.kovidgoyal.net/kitty/) terminal and using
77+also [cava](https://github.com/karlstav/cava):
88+99+
1010+1111+## How to use
1212+1313+This program has two modes: **visualizer** to show the cover, and notify to send the
1414+change in the cover.
1515+1616+### Run visualizer
1717+1818+```
1919+cover-viewer --mode visualizer
2020+```
2121+2222+### Notify from cmus
2323+2424+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:
2828+2929+```bash
3030+#!/bin/sh
3131+3232+# other programs
3333+program1 "$@" &
3434+program2 "$@" &
3535+3636+# cover viewer
3737+echo "$@" | cover-viewer --mode notify
3838+```