-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstatus.sh
More file actions
executable file
·109 lines (88 loc) · 2.28 KB
/
status.sh
File metadata and controls
executable file
·109 lines (88 loc) · 2.28 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#!/bin/bash
# Status checker for macOS Tiling Setup
echo "🔍 Checking mactile Status..."
echo ""
# Colors
GREEN='\033[0;32m'
RED='\033[0;31m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m'
print_status() {
echo -e "${BLUE}[INFO]${NC} $1"
}
print_success() {
echo -e "${GREEN}[✓]${NC} $1"
}
print_error() {
echo -e "${RED}[✗]${NC} $1"
}
print_warning() {
echo -e "${YELLOW}[!]${NC} $1"
}
# Check if packages are installed
echo "📦 Package Status:"
if command -v yabai &> /dev/null; then
print_success "yabai is installed ($(yabai --version))"
else
print_error "yabai is not installed"
fi
if command -v skhd &> /dev/null; then
print_success "skhd is installed ($(skhd --version))"
else
print_error "skhd is not installed"
fi
if command -v jq &> /dev/null; then
print_success "jq is installed"
else
print_error "jq is not installed"
fi
echo ""
# Check if services are running
echo "🔄 Service Status:"
if pgrep -x "yabai" > /dev/null; then
print_success "yabai is running (PID: $(pgrep yabai))"
else
print_error "yabai is not running"
fi
if pgrep -x "skhd" > /dev/null; then
print_success "skhd is running (PID: $(pgrep skhd))"
else
print_error "skhd is not running"
fi
echo ""
# Check configuration files
echo "📁 Configuration Status:"
if [ -L ~/.config/yabai/yabairc ]; then
print_success "yabai config symlink exists"
echo " → $(readlink ~/.config/yabai/yabairc)"
else
print_error "yabai config symlink missing"
fi
if [ -L ~/.config/skhd/skhdrc ]; then
print_success "skhd config symlink exists"
echo " → $(readlink ~/.config/skhd/skhdrc)"
else
print_error "skhd config symlink missing"
fi
echo ""
# Check brew services
echo "🍺 Brew Services:"
if brew services list | grep -q "yabai.*started"; then
print_success "yabai brew service is enabled"
else
print_warning "yabai brew service is not enabled"
fi
if brew services list | grep -q "skhd.*started"; then
print_success "skhd brew service is enabled"
else
print_warning "skhd brew service is not enabled"
fi
echo ""
# Quick test
echo "🧪 Quick Test:"
print_status "Try these hotkeys to test:"
echo " alt+tab - Window switching"
echo " m+space - Layout switching"
echo " m+m - Maximize/restore"
echo " m+h/j/k/l - Focus windows"