Skip to content

Commit

Permalink
Update documentation; public homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
Ddedalus committed Dec 2, 2022
1 parent 0f33a3c commit 3c145ac
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
24 changes: 9 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# interlude
Pause Spotify playback when other apps start making noise on Windows.
Automatically resume playback when the other sound finishes.
_Pause Spotify playback when other apps start making noise on Windows._
_Automatically resume playback when the other sound finishes._

This mimics default Android functionality, where background music would stop for
a duration of a call or alarm and resume afterwards.
Expand All @@ -9,14 +8,8 @@ a duration of a call or alarm and resume afterwards.

## Install

Hopefully one day:
```
pip install interlude
```
Until then, just git-clone this repo and install dependencies using poetry:
```
poetry shell
poetry install
```powershell
pip install spotify-interlude
```

## Set up Spotify
Expand All @@ -27,8 +20,9 @@ You'll need to obtain a [Development Token](https://developer.spotify.com/) from

## Run Interlude
Start Spotify and play some music. Then launch interlude:
```
export SPOTIFY_SECRET=... SPOTIFY_CLIENT_ID=...
```powershell
$Env:SPOTIFY_SECRET=...
$ENV:SPOTIFY_CLIENT_ID=...
interlude
```
When you try to play some sounds in Chrome, the music should stop playing.
Expand All @@ -37,7 +31,7 @@ When you try to play some sounds in Chrome, the music should stop playing.

You can tweak the behaviour of interlude using command line options:

```bash
```powershell
interlude --help
# Usage: interlude [OPTIONS]
#
Expand Down Expand Up @@ -77,7 +71,7 @@ interlude --help

## Create shortcut
To easily start interlude, create a shortcut with your desired settings:
```bash
```powershell
interlude --shortcut-path ~/Desktop/Interlude.lnk # add other options as needed
```
Note: the Spotify secret and client ID will be baked into the shortcut.
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
[tool.poetry]
name = "spotify-interlude"
version = "0.1.0"
version = "0.1.1"
description = "Pause Spotify playback when other apps start making noise"
authors = ["Hubert Bereś <h.beres@hotmail.com>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/Ddedalus/spotify-interlude"

[tool.poetry.scripts]
interlude = "spotify_interlude.cli:app"
Expand Down

0 comments on commit 3c145ac

Please sign in to comment.