I would like to mute my laptop everytime its lid closes by running the following command:

amixer set Master mute   

I found a similar question here asked more than 2 years ago which didn't work for me on Ubuntu 17.10. I also found this documentation called LaptopLidAndDockScripts for running general scripts when certain events happen,but it is a little cumbersome. Is there a quick way to add this feature?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.