How do I change the time of how long a notification stays on the screen in macOS 11 Big Sur? There's no setting for this in the system preferences.
I macOS Catalina the following command in Terminal worked (followed by a re-login to the system), whereas the number at the end of the command determined the number of seconds the notification stayed on the screen:
defaults write com.apple.notificationcenterui bannerTime -int 2
In earlier versions of macOS the command looked like this:
defaults write com.apple.notificationcenterui bannerTime 2
None of these commands seems to work on macOS 11 Big Sur.