Changing Notification Center preferences programatically or from the command line
6
votes
1
answer
1951
views
_(There's plenty of questions about toggling Do Not Disturb programmatically, this is different)_
Is there a plist file or sqlite DB that can be modified to change these settings programmatically? Specifically, "Show notifications on lock screen", "Show in Notification Center", etc.
I would like to change these in bulk, and sync those changes between my machines.
(I happen to be using the Venura Beta, but this question applies equally to Monteray).
I found

NCUtil
, but things have changed since it was written.
* It expects there to be a SQLite DB at $(getconf DARWIN_USER_DIR)com.apple.notificationcenter/db/db
,
* but it's now at `$(getconf
DARWIN_USER_DIR)com.apple.notificationcenter/db/db`, which has a different
schema (e.g. there's no more app_info
table with a flags
column)
Asked by Alexander
(8387 rep)
Sep 13, 2022, 06:09 PM
Last activity: Sep 14, 2023, 02:37 AM
Last activity: Sep 14, 2023, 02:37 AM