Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jozan/branch-dance
- Owner: jozan
- License: mit
- Created: 2022-09-27T12:20:17.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-23T23:06:53.000Z (about 2 years ago)
- Last Synced: 2024-12-02T07:26:53.255Z (2 months ago)
- Language: JavaScript
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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