-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathslack-autostatus.plist
35 lines (34 loc) · 1.06 KB
/
slack-autostatus.plist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<dict>
<key>NetworkState</key>
<true/>
</dict>
<key>Label</key>
<string>Slack Auto Status</string>
<key>EnvironmentVariables</key>
<dict>
<key>SLACK_PERSONAL_TOKEN</key>
<string>PUT_IT_HERE!!!</string>
<!-- If you want to also set presence (away/auto) based on lockscreen,
ensure you pip install pyobjc-framework-Quartz and uncomment this variable
<key>SET_PRESENCE</key>
<string>yup</string>
-->
</dict>
<key>StandardOutPath</key>
<string>/usr/local/var/log/slack-autostatus.log</string>
<key>StandardErrorPath</key>
<string>/usr/local/var/log/slack-autostatus.log</string>
<key>Program</key>
<string>/usr/local/bin/slack-autostatus</string>
<key>StartInterval</key>
<integer>15</integer>
<key>ThrottleInterval</key>
<integer>0</integer>
</dict>
</plist>