setup-kit/osx/com.user.switchtheme.plist

40 lines
997 B
Plaintext

<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.user.switchtheme</string>
<!-- 切换到深色主题 -->
<key>StartCalendarInterval</key>
<array>
<dict>
<key>Hour</key>
<integer>12</integer>
<key>Minute</key>
<integer>30</integer>
</dict>
<dict>
<key>Hour</key>
<integer>14</integer>
<key>Minute</key>
<integer>3</integer>
</dict>
</array>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>-c</string>
<string>
if [[ $(date +%H) == "12" ]]; then
osascript /Users/woan/.config/.bin/.Dependencies/setup-kit/osx/switchTopic.scpt dark;
elif [[ $(date +%H) == "14" ]]; then
osascript /Users/woan/.config/.bin/.Dependencies/setup-kit/osx/switchTopic.scpt light;
fi
</string>
</array>
<key>RunAtLoad</key>
<true />
</dict>
</plist>