Update project configuration and remove deprecated tmux.sh

- Add homepage project with basic template configuration
- Update README to reflect current project examples
- Remove root tmux.sh (replaced by template system)
- Update generated projects.json with new homepage project

The centralized project system now fully replaces individual tmux scripts.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Yan Lin 2025-07-26 23:03:01 +02:00
parent fce0729d48
commit 17f7812011
4 changed files with 10 additions and 30 deletions

View file

@ -167,16 +167,14 @@ hms # Quick home-manager switch
**Configuration**: `config/projects.nix`
**Purpose**: Quick access to project workspaces with tmux sessions
#### Available Projects:
#### Example Projects:
- **`blog`**: Personal blog with code + content workflow
- **`mdshortcut`**: Material Design Shortcut research project (code + paper)
- **`nix-config`**: Nix configuration with basic development workflow
#### Usage:
```bash
proj # List all available projects
blog # Launch blog project tmux session
mdshortcut # Launch MDShortcut project tmux session
nix-config # Launch nix-config project tmux session
```

View file

@ -1 +1 @@
/nix/store/4h9l43xg1zpszcdcf38d8md6xhw8xm18-home-manager-files/.config/nix/config/projects.json
/nix/store/qbgs48q2c5qc1p442phq27y3h4xz67fi-home-manager-files/.config/nix/config/projects.json

View file

@ -22,5 +22,12 @@
codePath = "/Users/yanlin/.config/nix";
description = "Nix configuration";
};
homepage = {
template = "basic";
name = "homepage";
codePath = "/Users/yanlin/Documents/Projects/Homepage/";
description = "Personal Homepage";
};
};
}
}

25
tmux.sh
View file

@ -1,25 +0,0 @@
#!/bin/bash
SESSION_NAME="nix"
WORK_DIR="/Users/yanlin/.config/nix"
if tmux has-session -t $SESSION_NAME 2>/dev/null; then
tmux attach-session -t $SESSION_NAME
exit 0
fi
tmux new-session -d -s $SESSION_NAME -c "$WORK_DIR"
tmux rename-window -t $SESSION_NAME:1 "nvim"
tmux send-keys -t $SESSION_NAME:1 "nvim" C-m
tmux new-window -t $SESSION_NAME:2 -n "ai"
tmux send-keys -t $SESSION_NAME:2 "claude -r" C-m
tmux split-window -t $SESSION_NAME:2 -h
tmux split-window -t $SESSION_NAME:2.2 -v
tmux select-pane -t $SESSION_NAME:2.1
tmux new-window -t $SESSION_NAME:3 -n "git"
tmux send-keys -t $SESSION_NAME:3 "gitui" C-m
tmux new-window -t $SESSION_NAME:4 -n "shell"
tmux select-window -t $SESSION_NAME:1
tmux attach-session -t $SESSION_NAME