Mute KDE from the Terminal

I’ll preface this by saying I like to listen to classical music. The problem is, that a certain streaming music service plays its classical music quietly, and it’s advertisements insanely loud. As a result, my comfortable classical music turns into this obnoxious loud cacophony of crap every time an ad comes on. Usually one of those you-appear-to-like-classical-why-not-listen-to-this-idiotic-rap-song adverts that make you listen to the first 15 seconds of some sheer garbage song.

I solved the problem by writing a shell script to just mute KDE, wait 30 seconds, then restore the volume. This gets triggered from a keyboard action.
Continue reading “Mute KDE from the Terminal”