-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_once_after_configure-apps-darwin.sh.tmpl
More file actions
32 lines (27 loc) · 1.83 KB
/
Copy pathrun_once_after_configure-apps-darwin.sh.tmpl
File metadata and controls
32 lines (27 loc) · 1.83 KB
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
#!/bin/bash
{{ if (eq .chezmoi.os "darwin") -}}
# ---------------------------------------------------------------------------------------------------------------------
# Amphetamine settings
# ---------------------------------------------------------------------------------------------------------------------
killall Amphetamine || true
# Start session as soon as Amphetamine starts
defaults write com.if.Amphetamine "Start Session At Launch" -bool true
# ---------------------------------------------------------------------------------------------------------------------
# CleanShot X settings
# ---------------------------------------------------------------------------------------------------------------------
killall CleanShot X || true
# Add Maccy to login items
osascript -e 'tell application "System Events" to make login item at end with properties {name:"CleanShot X", path:"/Applications/CleanShot X.app", hidden:false}'
# ---------------------------------------------------------------------------------------------------------------------
# Maccy settings
# ---------------------------------------------------------------------------------------------------------------------
killall Maccy || true
# Add Maccy to login items
osascript -e 'tell application "System Events" to make login item at end with properties {name:"Maccy", path:"/Applications/Maccy.app", hidden:false}'
# ---------------------------------------------------------------------------------------------------------------------
# Rocket settings
# ---------------------------------------------------------------------------------------------------------------------
killall Rocket || true
# Add Maccy to login items
osascript -e 'tell application "System Events" to make login item at end with properties {name:"Rocket", path:"/Applications/Rocket.app", hidden:false}'
{{ end -}}