How to Change the Duration of Notifications on MacOS
I enjoy Apple’s notification center, but sometimes I get way too many notifications. This can be distracting, not to mention it takes up screen real estate for quite a while. To my knowledge, there is no way to change the duration of notifications in System Preferences, but it can be done using the defaults
command.
You can open Terminal by using Finder and going to Applications > Utilities > Terminal. Or you can hit cmd + space bar and search for Terminal.
Type the following into Terminal:
defaults write com.apple.notificationcenterui bannerTime -int {duration}
Substitute {duration} for your desired duration. Since I wanted to shorten the duration of the notifications dramatically I used:
defaults write com.apple.notificationcenterui bannerTime -int 1
In order for this change to take effect you must log out and back in. Click on the “Apple” in the top left of the screen and click “Log out …”. Or you can type cmd + shift + Q.
If you’d like to test out the notification duration, you can run the following command in Terminal to display notifications from the command line:
osascript -e 'display notification "test notification!"'
In this guide, we’re going to use AppleScript and a tool called osascript to display macOS notifications.
How to Change the Duration of Notifications on MacOS
I enjoy Apple’s notification center, but sometimes I get way too many notifications. This can be distracting, not to mention it takes up screen real estate for quite a while. To my knowledge, there is no way to change the duration of notifications in System Preferences, but it can be done using the defaults
command.
You can open Terminal by using Finder and going to Applications > Utilities > Terminal. Or you can hit cmd + space bar and search for Terminal.
Type the following into Terminal:
defaults write com.apple.notificationcenterui bannerTime -int {duration}
Substitute {duration} for your desired duration. Since I wanted to shorten the duration of the notifications dramatically I used:
defaults write com.apple.notificationcenterui bannerTime -int 1
In order for this change to take effect you must log out and back in. Click on the “Apple” in the top left of the screen and click “Log out …”. Or you can type cmd + shift + Q.
If you’d like to test out the notification duration, you can run the following command in Terminal to display notifications from the command line:
osascript -e 'display notification "test notification!"'
In this guide, we’re going to use AppleScript and a tool called osascript to display macOS notifications.
How to Change the Duration of Notifications on MacOS
I enjoy Apple’s notification center, but sometimes I get way too many notifications. This can be distracting, not to mention it takes up screen real estate for quite a while. To my knowledge, there is no way to change the duration of notifications in System Preferences, but it can be done using the defaults
command.
You can open Terminal by using Finder and going to Applications > Utilities > Terminal. Or you can hit cmd + space bar and search for Terminal.
Type the following into Terminal:
defaults write com.apple.notificationcenterui bannerTime -int {duration}
Substitute {duration} for your desired duration. Since I wanted to shorten the duration of the notifications dramatically I used:
defaults write com.apple.notificationcenterui bannerTime -int 1
In order for this change to take effect you must log out and back in. Click on the “Apple” in the top left of the screen and click “Log out …”. Or you can type cmd + shift + Q.
If you’d like to test out the notification duration, you can run the following command in Terminal to display notifications from the command line:
osascript -e 'display notification "test notification!"'
In this guide, we’re going to use AppleScript and a tool called osascript to display macOS notifications.
How to Change the Duration of Notifications on MacOS
I enjoy Apple’s notification center, but sometimes I get way too many notifications. This can be distracting, not to mention it takes up screen real estate for quite a while. To my knowledge, there is no way to change the duration of notifications in System Preferences, but it can be done using the defaults
command.
How to Change the Duration of Notifications on MacOS
Jump to step:
Jump to step:
You can open Terminal by using Finder and going to Applications > Utilities > Terminal. Or you can hit cmd + space bar and search for Terminal.
You can open Terminal by using Finder and going to Applications > Utilities > Terminal. Or you can hit cmd + space bar and search for Terminal.
Open Terminal
Type the following into Terminal:
defaults write com.apple.notificationcenterui bannerTime -int {duration}
Substitute {duration} for your desired duration. Since I wanted to shorten the duration of the notifications dramatically I used:
defaults write com.apple.notificationcenterui bannerTime -int 1
Type the following into Terminal:
defaults write com.apple.notificationcenterui bannerTime -int {duration}
Substitute {duration} for your desired duration. Since I wanted to shorten the duration of the notifications dramatically I used:
defaults write com.apple.notificationcenterui bannerTime -int 1
Using the defaults command, set your desired duration
In order for this change to take effect you must log out and back in. Click on the “Apple” in the top left of the screen and click “Log out …”. Or you can type cmd + shift + Q.
In order for this change to take effect you must log out and back in. Click on the “Apple” in the top left of the screen and click “Log out …”. Or you can type cmd + shift + Q.
Log out and log back in
If you’d like to test out the notification duration, you can run the following command in Terminal to display notifications from the command line:
osascript -e 'display notification "test notification!"'
If you’d like to test out the notification duration, you can run the following command in Terminal to display notifications from the command line:
osascript -e 'display notification "test notification!"'
Test it out
In this guide, we’re going to use AppleScript and a tool called osascript to display macOS notifications.
In this guide, we’re going to use AppleScript and a tool called osascript to display macOS notifications.




Follow @howchoo and learn cool things:
Are you a passionate writer? We’re hiring!
Write for HowchooLike what we do?
DonateWant to support Howchoo? When you buy a tool or material through one of our Amazon links, we earn a small commission as an Amazon Associate.