From e7b52d91b3a1c48c19471e58b981f8711c27e404 Mon Sep 17 00:00:00 2001 From: Badstagram Date: Tue, 6 Jan 2026 16:28:17 +0000 Subject: [PATCH] chore(macos): use auto theme --- .chezmoiscripts/run_once_macos_setup.sh.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.chezmoiscripts/run_once_macos_setup.sh.tmpl b/.chezmoiscripts/run_once_macos_setup.sh.tmpl index 1140b9a..5ec573b 100644 --- a/.chezmoiscripts/run_once_macos_setup.sh.tmpl +++ b/.chezmoiscripts/run_once_macos_setup.sh.tmpl @@ -4,6 +4,8 @@ defaults write NSGlobalDomain _HIHideMenuBar -bool TRUE # Auto hide menu bar defaults write NSGLobalDomain NSAutomaticCapitalizationEnabled -bool FALSE defaults write NSGLobalDomain NSAutomaticPeriodSubstitutionEnabled -bool FALSE +defaults write NSGlobalDomain AppleInterfaceStyleSwitchesAutomatically -bool TRUE +defaults delete NSGLobalDomain AppleInterfaceStyle # Dock defaults write com.apple.dock autohide -bool TRUE # Enable auto hide dock @@ -45,5 +47,7 @@ wget $url -O $wallPath # https://github.com/rgcr/m-cli/blob/main/plugins/wallpaper#L21 osascript -e "tell application \"System Events\" to tell every desktop to set picture to \"$wallPath\" as POSIX file" +# +osascript -e 'tell app "System Events" to tell appearance preferences to set dark mode to not dark mode' {{ end -}}