# Workstation base tmux config (deployed to /etc/skel/.tmux.conf by # setup-devvm.sh; new accounts inherit it). Uses $HOME (expanded by the shell at # run time) so it works for ANY user — never a hardcoded /home/. # # NOTE: the tmux-resurrect/continuum "persistence" block is owned by the separate # terminal-lobby tool, which appends its own managed section + installs tpm. This # base file intentionally omits it so a fresh account isn't left with broken # `run ~/.tmux/plugins/tpm/tpm` references before terminal-lobby runs. # Launch the per-user Claude launcher in every new pane/window (lands in ~/code). set -g default-command "$HOME/start-claude.sh" # Mouse support — click panes, drag to resize, scroll with wheel set -g mouse on # Easy splits: Ctrl+b then | for vertical, - for horizontal bind | split-window -h -c "#{pane_current_path}" bind - split-window -v -c "#{pane_current_path}" bind c new-window -c "#{pane_current_path}" # Right-click context menu — clickable actions popup bind -n MouseDown3Pane display-menu -T "#[align=centre]Terminal Menu" -x M -y M \ "New Claude" w "new-window -c '#{pane_current_path}'" \ "Split Horizontal" h "split-window -v -c '#{pane_current_path}'" \ "Split Vertical" v "split-window -h -c '#{pane_current_path}'" \ "" \ "Shell" s "split-window -v -c '#{pane_current_path}' /bin/zsh" \ "" \ "Close Pane" x "confirm-before -p 'Close pane? (y/n)' kill-pane" \ "Close Window" X "confirm-before -p 'Close window? (y/n)' kill-window" \ "" \ "Detach" d "detach-client" # Clickable [+] button in the status bar — left-click to open the same menu set -g status-right '#[fg=black bg=green] [+] #[default] #[fg=cyan]Right-click for menu ' set -g status-right-length 60 bind -n MouseDown1StatusRight display-menu -T "#[align=centre]Terminal Menu" -x M -y S \ "New Claude" w "new-window -c '#{pane_current_path}'" \ "Split Horizontal" h "split-window -v -c '#{pane_current_path}'" \ "Split Vertical" v "split-window -h -c '#{pane_current_path}'" \ "" \ "Shell" s "split-window -v -c '#{pane_current_path}' /bin/zsh" \ "" \ "Close Pane" x "confirm-before -p 'Close pane? (y/n)' kill-pane" \ "Close Window" X "confirm-before -p 'Close window? (y/n)' kill-window" # Status bar styling + 1-based numbering set -g status-style 'bg=colour235 fg=colour136' set -g status-left '#[fg=green][#S] ' set -g base-index 1 setw -g pane-base-index 1