Send sound over HDMI when connected
PulseAudio is not able to automatically send the sound over HDMI, when my laptop is connected to an external monitor (TV) or back to internal speakers, when disconnected. I had to write a script to do this. I also tried the “module-switch-on-connect” to get the sound over HDMI, but it doesn’t work. Please, fix it! Thank you!
Enviroment: Linux Mint 19.1 Cinnamon Laptop: Lenovo Ideapad 110