iOS has a list of triggers you can use to launch shortcuts but for some reason Apple chose not to include that feature in macOS. Shortery from UnitNo5 steps in to fill that gap. It includes 17 triggers including time, WIFi connections and folder contents.