matugen: change macOS accent colour

This commit is contained in:
Nico 2026-01-01 16:05:48 +11:00
parent 06311bdf7e
commit 71fabc3a5f
Signed by: nico
SSH key fingerprint: SHA256:XuacYOrGqRxC3jVFjfLROn1CSvLz85Dec6N7O9Gwu/0
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,14 @@
#!/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)
}