notificationCenter
Show Previews
Section titled “Show Previews”System Settings > Notification > Show Previews
Option Module: home-manager
Option Path: applications.systemSettings.notifications.notificationCenter.showPreviews
Option Value Description: null or one of "Always", "Never", "When Unlocked", "unset"
Always:
/usr/bin/defaults write ~/Library/Preferences/com.apple.ncprefs content_visibility -int "3" 2>/dev/null || trueNever:
/usr/bin/defaults write ~/Library/Preferences/com.apple.ncprefs content_visibility -int "1" 2>/dev/null || trueWhen Unlocked:
/usr/bin/defaults write ~/Library/Preferences/com.apple.ncprefs content_visibility -int "2" 2>/dev/null || trueunset:
/usr/bin/defaults delete ~/Library/Preferences/com.apple.ncprefs content_visibility 2>/dev/null || trueSummarize Notifications
Section titled “Summarize Notifications”System Settings > Notification > Summarize Notifications
Option Module: home-manager
Option Path: applications.systemSettings.notifications.notificationCenter.summarizeNotifications
Option Value Description: null or boolean or value "unset" (singular enum)
false:
/usr/bin/defaults write ~/Library/Preferences/com.apple.ncprefs summarize_previews -bool "false" 2>/dev/null || truetrue:
/usr/bin/defaults write ~/Library/Preferences/com.apple.ncprefs summarize_previews -bool "true" 2>/dev/null || trueunset:
/usr/bin/defaults delete ~/Library/Preferences/com.apple.ncprefs summarize_previews 2>/dev/null || true