How to change the time display notifications on the Mac using the Terminal
Makradar Technologies / / December 19, 2019
I think that every user of the operating system OS X pop-up banners are familiar with a variety of notifications. It can be a reminder notice from sites or new mail information. And if you can adjust the notification themselves manually for the supported programs, it's time for their display - no. More precisely, it is impossible to do this by standard means, but you can resort to the terminal.
First you need to know that the notification in the system are of two kinds (except for disabled): Alerts and Banners. First serve any reminder and hang as long as the user begins to interact with them (postpone, delete or review). While the latter appear for a few seconds, and then "hide" in the Notification Center. Customize their "behavior" can be in the system settings (System Preferences - alert).
Well, with the differences understood, now let's set the time display on the screen. To do this, open the Terminal (Programs - Utilities - Terminal), in it we will adjust the display time of the banner.
All we need - is to enter the following line to any value equal to the second:
defaults write com.apple.notificationcenterui bannerTime [In seconds]
For example, if you want to pop up a notification and then quickly disappeared, install one second interval using the following command:
defaults write com.apple.notificationcenterui bannerTime 1
And if you wish to have it hung a little longer, you can set the interval in the quarter of a minute:
defaults write com.apple.notificationcenterui bannerTime 25
This command causes the banner does not disappear within twenty-five seconds.
Once you select the appropriate display time interval for notifications and you enter the command, you will need to do one more thing that all the settings have been applied: come out and log back in to your account, or simply restart your computer.
In any case, talk about which team will help you return to standard time notification if experiments have failed, or the default settings have been more comfortable than the ones to which you changed.
In order to set the default value, simply enter the same command, but without specifying the time:
defaults write com.apple.notificationcenterui bannerTime
Now, most importantly do not forget to re-login to the system or restart your Mac to apply all settings.
Unfortunately, in the system settings, from the graphical interface to change the time display of banners at the moment there is no possibility, which is a pity. Maybe in a future version we will see change, but for now it will have to use Terminal.
What do you think, Apple chose the optimum time enough to display banners or still want to change it? Write in the comments!