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

https://github.com/chebro/spotify-admute

(proof of concept) bash script that mutes spotify ads
https://github.com/chebro/spotify-admute

bash pactl playerctl spotify

Last synced: 2 months ago
JSON representation

(proof of concept) bash script that mutes spotify ads

Awesome Lists containing this project

README

          

# Spotify Admute

Hate spotify ads? this script may help you.

A lightweight bash daemon that monitors the dbus for change in mpris title metadata and mutes/unmutes the default pulseaudio sink depending on whether or not it is an advert.

## Dependencies

- [pactl](https://man.archlinux.org/man/pactl.1.en)
- [playerctl](https://github.com/altdesktop/playerctl)

## Run as daemon

If you are running systemd,

1. copy `systemd/admute.service` to `$HOME/.config/user/systemd/`
2. edit the `ExecStart` path to `%h/path/to/script` (`%h` expands to `$HOME`), then

```bash
# start service
systemctl --user start admute.service

# automatically run service on boot
systemctl --user enable admute.service
```

If you're on i3wm, it is easier to just append this to your config,

```bash
exec --no-startup-id /path/to/script
```

## Todo

- [x] write systemd service file
- [x] finish README
- [ ] measure performace