Skip to content

Commit 69264aa

Browse files
committed
chore: move all phoenix.js related to own readme
1 parent fd447bf commit 69264aa

File tree

2 files changed

+20
-28
lines changed

2 files changed

+20
-28
lines changed

CLAUDE.md

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@ make karabiner-dev # Watch mode with auto-rebuild
2121
# Direct: deno run --allow-env --allow-read --allow-write karabiner/karabiner.ts
2222
```
2323

24-
### Phoenix (Window Manager)
25-
```bash
26-
make phoenix # Build ~/.phoenix.js from TypeScript
27-
make phoenix-dev # Watch mode with auto-rebuild
28-
# Direct: pnpm -C phoenix run build
29-
```
30-
3124
### VS Code Extensions
3225
```bash
3326
make vscode-install # Install extensions from vscode/extensions.txt
@@ -65,25 +58,6 @@ TypeScript-based Karabiner-Elements config using Deno and [deno_karabiner](https
6558

6659
**Architecture pattern:** Export rule builders from `lib/`, compose in main `karabiner.ts` using `KarabinerComplexModifications` class.
6760

68-
### Phoenix Configuration (deprecated) (`phoenix/`)
69-
TypeScript window manager config compiled with `@vercel/ncc` to single-file `~/.phoenix.js`.
70-
71-
**Key files:**
72-
- `src/phoenix.ts`: Main config with all keybindings
73-
- `src/window-grid.ts`: Window positioning system (GridPosition 0-1 based)
74-
- `src/window-cache.ts`: Window history tracking
75-
- `src/screen.ts`: Multi-display management
76-
- `src/hyper.ts`: Key binding helpers matching Karabiner's hyper key
77-
- `src/utils/yabai.ts`: Yabai integration helpers
78-
79-
**Grid system:** All window positions defined as `GridPosition` with x/y/w/h on 0-1 scale. Supports split layouts (left66, right50, etc.) and centered positions (full, big, med, sm, xs).
80-
81-
**Binding pattern:**
82-
```typescript
83-
hyper('key', callback) // CapsLock+key
84-
hyperCmd('key', callback) // CapsLock+Cmd+key
85-
```
86-
8761
### ZSH Configuration (`zsh/`)
8862
**Main file:** `zshrc.zsh` (symlinked to `~/.zshrc`)
8963

@@ -137,5 +111,3 @@ deno test claude/hooks/pure-md-prompt-rewriter.test.ts
137111

138112
**Karabiner:** Deno with no deps → single `karabiner.json` output
139113
**Claude hooks:** Deno with TypeScript → no compilation needed (executed directly)
140-
141-
Both Karabiner and Phoenix use function composition over classes. Export small utilities from `lib/`/`utils/` and compose in main file.

phoenix/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Phoenix Configuration (deprecated)
2+
TypeScript window manager config compiled with `@vercel/ncc` to single-file `~/.phoenix.js`.
3+
4+
## Key files
5+
6+
- `src/phoenix.ts`: Main config with all keybindings
7+
- `src/window-grid.ts`: Window positioning system (GridPosition 0-1 based)
8+
- `src/window-cache.ts`: Window history tracking
9+
- `src/screen.ts`: Multi-display management
10+
- `src/hyper.ts`: Key binding helpers matching Karabiner's hyper key
11+
- `src/utils/yabai.ts`: Yabai integration helpers
12+
13+
## Grid system
14+
15+
- All window positions defined as `GridPosition` with x/y/w/h on 0-1 scale. Supports split layouts (left66, right50, etc.) and centered positions (full, big, med, sm, xs).
16+
- Dual Window splitting, resize other window to fit
17+
- <kbd>CapsLock</kbd>+<kbd>q</kbd> - Chained: 60%, 50%, 40%, 33%, 66%
18+
- <kbd>CapsLock</kbd>+<kbd>e</kbd> - Chained: 40%, 50%, 60%, 66%, 33%
19+
- <kbd>CapsLock</kbd>+<kbd>w</kbd> - Chained: full, centeredBig, centeredMedium, centeredSmall
20+
- <kbd>CapsLock</kbd>+<kbd>tab</kbd> - Move window to next screen

0 commit comments

Comments
 (0)