matugen: change macOS accent colour
This commit is contained in:
parent
06311bdf7e
commit
71fabc3a5f
2 changed files with 31 additions and 0 deletions
14
stow/.config/matugen/scripts/macos-accent-notification
Executable file
14
stow/.config/matugen/scripts/macos-accent-notification
Executable 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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue