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.
If you are running systemd,
- copy
systemd/admute.service
to$HOME/.config/user/systemd/
- 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
- write systemd service file
- finish README
- measure performace