-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use "legit" macos startup items instead of lovely launchd.
- Loading branch information
1 parent
649aee9
commit 675d1b5
Showing
3 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#!/bin/sh -e | ||
ssh-add -q "${HOME}"/.ssh/keys/personal/git-signing-key | ||
open /Applications/Amethyst.app | ||
open /Applications/Maccy.app | ||
echo 'on-login finished' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
add_to_login_items() { | ||
local app_path="$1" | ||
osascript <<EOF | ||
tell application "System Events" | ||
make login item at end with properties {path:"$app_path", hidden:false} | ||
end tell | ||
EOF | ||
} | ||
|
||
add_to_login_items "/Applications/Amethyst.app" | ||
add_to_login_items "/Applications/Maccy.app" | ||
add_to_login_items "/Applications/OrbStack.app" |