Files
devdesk/share/tmux.conf
T

51 lines
2.3 KiB
Bash
Raw Permalink Normal View History

# DevDesk tmux configuration, loaded by devdesk-tmux.service.
# Local overrides: /etc/devdesk/tmux.local.conf (sourced last).
# --- terminal behaviour -------------------------------------------------------
set -s escape-time 10 # Esc reaches Claude (interrupt) immediately
set -s focus-events on
set -s set-clipboard on # tmux copy-mode -> OSC 52 -> browser clipboard
set -s default-terminal "tmux-256color"
set -s terminal-features[90] "xterm-256color:RGB" # fixed index: re-sourcing must not append
set -g history-limit 50000
set -g mouse on # wheel scrolls history; a drag selects in the browser (devdesk#51)
# No right-click menus (devdesk#52): one stray click on them splits a pane or
# kills a window (Claude's). Splits and kills stay on the keyboard (^b % ^b x).
unbind -n MouseDown3Pane
unbind -n M-MouseDown3Pane
unbind -n MouseDown3Status
unbind -n MouseDown3StatusLeft
set -g allow-passthrough off # output may not bypass tmux (title/clipboard spoofing)
set -g renumber-windows on
# --- bells reach the browser (Claude's terminal_bell notifications) ----------
set -g bell-action any
set -g visual-bell off
set -g monitor-bell on
# --- titles: the web UI parses "devdesk:<session>|<pane title>" ---------------
set -g set-titles on
set -g set-titles-string "devdesk:#S|#T"
# --- every new session gets a spare shell next to Claude ---------------------
set-hook -g session-created "new-window -d -n shell"
# --- colours ---------------------------------------------------------------------
# ANSI colour names, not hex: the browser maps them through its dark or light
# palette, so the status bar follows DevDesk's theme (devdesk#31). black is the
# bar, white muted text, cyan the accent, yellow the session name.
set -g status-position bottom
set -g status-style "bg=black,fg=white"
set -g status-left "#[fg=yellow,bold] #S #[fg=brightblack,nobold]│ "
set -g status-left-length 40
set -g status-right ""
set -g window-status-format " #I:#W "
set -g window-status-current-format "#[fg=cyan,reverse,bold] #I:#W "
set -g window-status-bell-style "fg=yellow,bold"
set -g message-style "bg=black,fg=cyan"
set -g mode-style "fg=cyan,reverse"
set -g pane-border-style "fg=brightblack"
set -g pane-active-border-style "fg=cyan"
source-file -q /etc/devdesk/tmux.local.conf