Configure macOS Notification Center Banner self-dismiss time

How can I reduce the amount of time before a macOS / OS X Notification Center banner dismisses itself?


Open your terminal and run this command

defaults write com.apple.notificationcenterui bannerTime SECONDS

where SECONDS is a number for how many seconds you want the banner to be displayed.