Skip to content

Commit

Permalink
feat: Add autostart
Browse files Browse the repository at this point in the history
  • Loading branch information
jesse-c committed Dec 8, 2022
1 parent 25264bb commit 3f28be1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ You'll need to adapt the `respond` function for your local machine's setup.

Run the compiled binary (e.g. `$ AppearanceNotifier`). You'll need to leave this running.

### Autostart

To have it autostart at login, you can use `launchd`, with the provided job definition. Copy it to the right location (e.g. `$ cp com.jesseclaven.appearancenotifier.plist ~/Library/LaunchAgents/`).

## Dependencies

**Neovim**
Expand Down
18 changes: 18 additions & 0 deletions com.jesseclaven.appearancenotifier.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?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>Label</key>
<string>com.jesseclaven.appearancenotifier</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/AppearanceNotifier</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/tmp/appearancenotifier.err</string>
<key>StandardOutPath</key>
<string>/tmp/appearancenotifier.out</string>
</dict>
</plist>

0 comments on commit 3f28be1

Please sign in to comment.