defaults write com.apple.notificationcenterui bannerTime -int 2 # 2 is how many seconds you want the notification to stay for # then killall NotificationCenter