Add schedule to the gnome do not disturb
You can install the package for Ubuntu from PPA, or you can download the package from the release section
Add the Auto Do not Disturb program to the list of auto started programs
Modify the config file '~/.config/autodnd/config.txt' to fit your need (see config-sample.txt for more info)