dots/stow/.config/matugen/scripts/macos-accent-notification

14 lines
377 B
Text
Executable file

#!/usr/bin/env swift
// from: https://alexwlchan.net/2022/changing-the-macos-accent-colour/
import Foundation
let notifications = [
"AppleColorPreferencesChangedNotification",
"AppleAquaColorVariantChanged"
]
for name in notifications {
let notifyEvent = Notification.Name(name)
DistributedNotificationCenter.default().post(name: notifyEvent, object: nil)
}