diff options
| author | Luke Hoersten <[email protected]> | 2026-05-05 09:23:14 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-05-05 09:23:14 -0500 |
| commit | b7b16b8b7fc109802a5065a0193228a3a095681a (patch) | |
| tree | 2d40872163754dcca61d34e618e49f781fe5fdd2 /init.el | |
| parent | bd4dc50787d0b1ad59aba129e7dd2cdd966e74b1 (diff) | |
Added hook to request macos permissions for light/dark mode event.
Diffstat (limited to 'init.el')
| -rw-r--r-- | init.el | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -342,6 +342,12 @@ (require 'auto-dark) (setq auto-dark-allow-osascript t auto-dark-themes '((solarized-dark) (solarized-light))) +;; Trigger the macOS Automation permission prompt for System Events when +;; launched from Spotlight. ns-do-applescript fails silently without the +;; prompt, but shelling to osascript surfaces TCC. +(when (eq system-type 'darwin) + (call-process "osascript" nil nil nil + "-e" "tell application \"System Events\" to tell appearance preferences to return dark mode")) (auto-dark-mode 1) |
