-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·58 lines (47 loc) · 1.45 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·58 lines (47 loc) · 1.45 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
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env bash
# Arrogance Theme Dotfiles Installer
# Creates symlinks from dotfiles to ~/.config
set -e
DOTFILES_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
CONFIG_DIR="$HOME/.config"
# Colors
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
NC='\033[0m'
echo -e "${GREEN}Installing Arrogance dotfiles...${NC}"
echo ""
# Create .config if it doesn't exist
mkdir -p "$CONFIG_DIR"
# Apps to link
apps=(yabai skhd borders ghostty)
for app in "${apps[@]}"; do
source="$DOTFILES_DIR/$app"
target="$CONFIG_DIR/$app"
if [ -d "$source" ]; then
if [ -L "$target" ]; then
echo -e "${YELLOW}Removing existing symlink:${NC} $target"
rm "$target"
elif [ -d "$target" ]; then
echo -e "${YELLOW}Backing up existing config:${NC} $target -> $target.backup"
mv "$target" "$target.backup"
fi
ln -s "$source" "$target"
echo -e "${GREEN}Linked:${NC} $app"
fi
done
echo ""
echo -e "${GREEN}Done!${NC}"
echo ""
echo "Next steps:"
echo " 1. Install dependencies:"
echo " brew install koekeishiya/formulae/yabai"
echo " brew install koekeishiya/formulae/skhd"
echo " brew tap FelixKratz/formulae && brew install borders"
echo " brew install --cask ghostty"
echo ""
echo " 2. Start services:"
echo " yabai --start-service"
echo " skhd --start-service"
echo " brew services start borders"
echo ""
echo " 3. Grant accessibility permissions in System Settings"