(full) rewrite leveraging logging subsystem + M1 native support + execute script on event (#2) + improved Big Sur compatibility/issues (#3, #4, #6, #7)