/spotify-admute

(proof of concept) bash script that mutes spotify ads

Primary LanguageShellMIT LicenseMIT

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

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
# 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,

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

Todo

  • write systemd service file
  • finish README
  • measure performace