by Lorenzo Gasperotti
Set an automatic "not disturb" in android 5 or newer.
Add #T or #A or #P or #S to the description of events to automatically select Total silence, Alarms only, Priority, or school mode during the length of your event. When the event is finished not disturb is automatically toggled off. The description can contain other things other than the tag.
Update: In newer versions of android you may need to disable battery saver for the app automate. (as the battery saver prevents the app from checking the calendar when an event starts)
Have a good time