Repository navigation
Expand file tree
/
Copy pathmuxa.tmux.conf
More file actions
42 lines (37 loc) · 2.37 KB
/
Copy pathmuxa.tmux.conf
File metadata and controls
42 lines (37 loc) · 2.37 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
# muxa — tmux integration snippet
#
# Source from your ~/.tmux.conf with:
# source-file ~/path/to/muxa.tmux.conf
# …or copy-paste the blocks you want.
# ---------------------------------------------------------------------------
# Status line — per-pane agent glyph (⚙ / · / ! / ✗ / ∅ / …)
# ---------------------------------------------------------------------------
set -g status-interval 2
set -g status-right "#(muxa status-line --pane #{pane_id}) | #[fg=white]%H:%M"
set -g status-right-length 140
# ---------------------------------------------------------------------------
# prefix + s → full-client muxa watch
# Enter focuses the selected session/window/pane.
#
# If you use tmux-resurrect (binds prefix + C-s), leave that alone and rely
# on the built-in `prefix + w` (window tree) as the stock fallback.
# ---------------------------------------------------------------------------
bind-key s run-shell -b "muxa watch --popup --caller-client '#{client_name}' --caller-pane '#{pane_id}'"
bind-key S run-shell -b "muxa watch --popup --fleet --caller-client '#{client_name}' --caller-pane '#{pane_id}'"
bind-key e run-shell -b "muxa sidebar toggle --pane '#{pane_id}'"
# Move the active agent without restarting it; capture its id before opening.
bind-key M run-shell -b "muxa agent move --popup --pane '#{pane_id}' --caller-client '#{client_name}'"
# Focus an agent pane first. The dashboard then sends collaboration requests
# as that agent, only to peers in the same tmux window.
bind-key D display-popup -E -w 95% -h 90% "muxa dashboard"
# ---------------------------------------------------------------------------
# prefix + q → muxa peek: each pane's live screen, dimmed, under a box
# carrying its agent's state, summary, latest prompt, and
# latest response. A pane's digit jumps there; q/Esc closes.
#
# Replaces tmux's stock display-panes — peek is a superset of it, so there is
# no reason to make you reach for a modifier to get the better version.
# Muxa opens the borderless full-client popup. Capture the invoking view here:
# linked panes may retain the detached original session in their environment.
# ---------------------------------------------------------------------------
bind-key q run-shell -b "muxa peek --popup --caller-client '#{client_name}' --caller-session '#{session_id}' --caller-window '#{window_id}'"