Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jozan/branch-dance

theme music for your branches
https://github.com/jozan/branch-dance

Last synced: 10 days ago
JSON representation

theme music for your branches

Awesome Lists containing this project

README

        

# branch dance

theme music for your branches

## requirements

- macos or linux
- git (obviously)
- [spotify-tui](https://github.com/Rigellute/spotify-tui) (set it up)

## setup

```sh
npx branch-dance
```

## alternatively manual install

install the hook by grabbing `post-checkout` from the repo and putting it in your `.git/hooks` directory

```sh
$ mv post-checkout .git/hooks/post-checkout
```

configure music per branch using spotify uris. the script reads `MUSIC` file in your repo's root.

```sh
$ echo "main=spotify:track:7E6VM4eg8ADYdgbMnXO97d" >> MUSIC
```

## usage

after setup start switching branches while spotify is on

```sh
$ git checkout main
Switched to branch 'main'
▶ Komm, süsser Tod - Astrophysics
```

configure branches and tracks/albums using spotify uris in `MUSIC` file in your repo's root