-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathinstall
More file actions
executable file
·47 lines (38 loc) · 1.43 KB
/
Copy pathinstall
File metadata and controls
executable file
·47 lines (38 loc) · 1.43 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env bash
set -e
CONFIG="install.conf.yaml"
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Install Homebrew if not present
if ! command -v brew &>/dev/null; then
echo "Installing Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
# Install dotbot if not present
if ! command -v dotbot &>/dev/null; then
echo "Installing dotbot..."
brew install dotbot
fi
# Check for monitoring/tracking software
echo ""
echo "Running monitoring software detection..."
"${BASEDIR}/scripts/detect-monitoring"
# Window management prompt
echo ""
echo "Window management tools (yabai, skhd, sketchybar, borders) require"
echo "special macOS permissions and partial SIP disabling to work properly."
echo ""
read -rp "Install window management tools? (y/N) " install_wm
dotbot -d "${BASEDIR}" -c "${CONFIG}" "${@}"
if [[ "$install_wm" =~ ^[Yy]$ ]]; then
echo ""
echo "Installing window management tools..."
dotbot -d "${BASEDIR}" -c "install.wm.yaml" "${@}"
brew bundle --file="${BASEDIR}/homebrew/Brewfile.wm"
# Install sketchybar-app-font for app icons in sketchybar
if ! fc-list | grep -qi "sketchybar-app-font"; then
echo "Installing sketchybar-app-font..."
curl -L https://github.com/kvndrsslr/sketchybar-app-font/releases/download/v2.0.5/sketchybar-app-font.ttf \
-o ~/Library/Fonts/sketchybar-app-font.ttf
fi
fi