-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuninstall.sh
More file actions
executable file
·67 lines (52 loc) · 1.51 KB
/
uninstall.sh
File metadata and controls
executable file
·67 lines (52 loc) · 1.51 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
59
60
61
62
63
64
65
66
67
#!/bin/bash
# macOS Tiling Uninstall Script
# Removes yabai and skhd setup
set -e
echo "🗑️ Uninstalling macOS Tiling Environment..."
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
print_status() {
echo -e "${BLUE}[INFO]${NC} $1"
}
print_success() {
echo -e "${GREEN}[SUCCESS]${NC} $1"
}
print_warning() {
echo -e "${YELLOW}[WARNING]${NC} $1"
}
print_error() {
echo -e "${RED}[ERROR]${NC} $1"
}
print_status "Stopping services..."
if pgrep -x "yabai" > /dev/null; then
yabai --stop-service
fi
if pgrep -x "skhd" > /dev/null; then
skhd --stop-service
fi
print_status "Removing brew services..."
brew services stop yabai 2>/dev/null || true
brew services stop skhd 2>/dev/null || true
print_status "Removing configuration symlinks..."
rm -f ~/.config/yabai/yabairc
rm -f ~/.config/skhd/skhdrc
print_status "Removing empty config directories..."
rmdir ~/.config/yabai 2>/dev/null || true
rmdir ~/.config/skhd 2>/dev/null || true
print_warning "Do you want to uninstall yabai and skhd packages? (y/N)"
read -r response
if [[ "$response" =~ ^[Yy]$ ]]; then
print_status "Uninstalling packages..."
brew uninstall yabai skhd
print_success "Packages uninstalled!"
else
print_status "Packages kept installed."
fi
print_success "Uninstall complete! 🎉"
echo ""
print_warning "Remember to remove Accessibility permissions for yabai and skhd if desired:"
echo " System Settings → Privacy & Security → Accessibility"