I would like to set my Ubuntu computer such that I can't hear any audio between 9:59pm and 8:00am. How can I do that?
Found this method on AskUbuntu that shows using a crontab entry along with amixer
to mute/unmute the sound. It's titled: How do I automatically mute/unmute sound during a certain time period (e.g. night)?.
Create a crontab entry
$ crontab -e
Add entries to crontab
59 21 * * * amixer set Master mute
00 08 * * * amixer set Master unmute
Save (if you are using ViM, then e.g. Shift+Z+Z)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句