refactor(tmux): clean up terminal settings and adjust keybindings

- Enable tmux-256color and universal RGB/clipboard terminal features
- Remove stale commented-out terminal overrides and default-shell
- Update escape-time and workmux popup binding
- Rebind t→o for the t script
This commit is contained in:
2026-08-15 23:41:40 -04:00
parent 02b2a96fa9
commit 4a8341a651
+8 -18
View File
@@ -1,19 +1,11 @@
# set-option -g default-terminal 'screen-256color'
# set-option -g terminal-overrides ',xterm-256color:RGB'
# set -g default-terminal "tmux-256color"
set -as terminal-feature ",foot*:RGB"
set -g default-terminal "tmux-256color"
set -as terminal-feature ",*:RGB"
set -as terminal-feature ",*:clipboard"
# screen mode
# set -g default-terminal "${TERM}"
# set -g default-terminal "tmux-256color"
# set -ag terminal-overrides ",xterm-256color:RGB"
# colors
# set -ag terminal-overrides ",xterm*:Tc"
# undercurl support
# set -ag terminal-overrides ",*:Tc"
# set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
# underscore colours - needs tmux-3.0
# set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
# allow terminal scrolling
# set -g terminal-overrides 'xterm*:smcup@:rmcup@'
@@ -24,9 +16,6 @@ set -g update-environment "DISPLAY XAUTHORITY"
set -g mouse on
# default shell
set -g default-shell "/usr/bin/fish"
# auto rename windows
# set -g automatic-rename on
# set -g automatic-rename-format '#{pane_current_command} #{b:pane_current_path}'
@@ -51,7 +40,7 @@ set -g allow-passthrough on
#set -g bell-on-alert on
set -s escape-time 1
set -s escape-time 0
setw -g aggressive-resize on
set -g status-keys vi
set-window-option -g mode-keys vi
@@ -64,6 +53,7 @@ set-option -g detach-on-destroy off
set-option -g renumber-windows on
set-option -g set-clipboard on
set-option -g set-titles-string "#S:#{pane_title}"
set -sg escape-time 10
unbind C-Space
set -g prefix C-Space
@@ -84,7 +74,7 @@ bind e run "tmux split -h /usr/bin/nvim"
#bind o display-popup -w 80% -h 80% -E /usr/bin/opencode
#bind g display-popup -w 80% -h 80% -E /usr/bin/lazygit
bind a display-popup -w 80% -h 80% "workmux status --git"
bind a display-popup -w 80% -h 80% -E "workmux dashboard"
# split windows like vim
# vim's definition of a horizontal/vertical split is reversed from tmux's
@@ -106,7 +96,7 @@ bind B command-prompt -p "New Session:" "new-session -A -s '%%'"
bind Tab switch-client -l
bind R command-prompt -p "Rename Window:" "rename-window '%%'"
bind t run-shell -b "~/.local/bin/t"
bind o run-shell -b "~/.local/bin/t"
bind Enter run-shell -b "~/.local/bin/s"
bind Q confirm kill-session