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
- Host: GitHub
- URL: https://github.com/chebro/spotify-admute
- Owner: chebro
- License: mit
- Created: 2021-08-18T18:19:24.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-19T07:44:15.000Z (almost 5 years ago)
- Last Synced: 2025-03-11T09:37:43.275Z (over 1 year ago)
- Topics: bash, pactl, playerctl, spotify
- Language: Shell
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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