-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenable-accessibility.sh
More file actions
executable file
·62 lines (50 loc) · 1.54 KB
/
enable-accessibility.sh
File metadata and controls
executable file
·62 lines (50 loc) · 1.54 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
#!/bin/bash
echo "🔐 Enabling Accessibility Permissions for mactile"
echo ""
# Colors
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m'
print_info() {
echo -e "${BLUE}[INFO]${NC} $1"
}
print_warning() {
echo -e "${YELLOW}[!]${NC} $1"
}
print_success() {
echo -e "${GREEN}[✓]${NC} $1"
}
print_info "This script will help you enable accessibility permissions for mactile (yabai and skhd)."
echo ""
print_warning "You need to manually add the following apps to System Settings → Privacy & Security → Accessibility:"
echo ""
echo "1. Terminal (or your terminal app)"
echo "2. yabai"
echo "3. skhd"
echo ""
print_info "Steps to follow:"
echo "1. Open System Settings"
echo "2. Go to Privacy & Security → Accessibility"
echo "3. Click the lock icon and enter your password"
echo "4. Click the '+' button to add applications"
echo "5. Add the following:"
echo " - Terminal (or iTerm2, etc.)"
echo " - yabai (usually in /opt/homebrew/bin/yabai)"
echo " - skhd (usually in /opt/homebrew/bin/skhd)"
echo "6. Make sure all three are checked/enabled"
echo ""
# Try to find the actual paths
YABAI_PATH=$(which yabai 2>/dev/null)
SKHD_PATH=$(which skhd 2>/dev/null)
if [ -n "$YABAI_PATH" ]; then
print_info "yabai location: $YABAI_PATH"
fi
if [ -n "$SKHD_PATH" ]; then
print_info "skhd location: $SKHD_PATH"
fi
echo ""
print_warning "After adding the permissions, restart the services:"
echo " ./stop.sh && ./start.sh"
echo ""
print_info "Then test with: alt+tab (should switch windows instead of macOS app switcher)"