From 3f28be1bc1878286c21218a18f524be76dd15156 Mon Sep 17 00:00:00 2001 From: Jesse Claven Date: Thu, 8 Dec 2022 22:47:37 +0000 Subject: [PATCH] feat: Add autostart --- README.md | 4 ++++ com.jesseclaven.appearancenotifier.plist | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100755 com.jesseclaven.appearancenotifier.plist diff --git a/README.md b/README.md index 6ff7057..bef9e1a 100644 --- a/README.md +++ b/README.md @@ -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** diff --git a/com.jesseclaven.appearancenotifier.plist b/com.jesseclaven.appearancenotifier.plist new file mode 100755 index 0000000..4d0062f --- /dev/null +++ b/com.jesseclaven.appearancenotifier.plist @@ -0,0 +1,18 @@ + + + + + Label + com.jesseclaven.appearancenotifier + ProgramArguments + + /usr/local/bin/AppearanceNotifier + + RunAtLoad + + StandardErrorPath + /tmp/appearancenotifier.err + StandardOutPath + /tmp/appearancenotifier.out + +