cmus-osx adds track change notifications, and media key support to cmus (macOS only).
macOS automatically launches iTunes on media key presses. Installing noTunes is the recommended solution to prevent this from happening.
pip3 install cmus-osx cmus-osx install
cmus-osx supports virtual environments natively, so installing it via
pipx (or basically any other virtual environment manager) works just as well.
cmus-osx uninstall pip3 uninstall cmus-osx
Framework building has to be enabled, otherwise notifications cannot be created.