commit 05564ff033ac6758f70f6a85b08d8d5a8c56728b
parent acc9679fc6e5594283db998f394db367cfc60a61
Author: Chris Bracken <chris@bracken.jp>
Date: Sun, 29 Jun 2025 14:56:39 -0700
tmux: fix comments, reorder config
No functional change; just cleans up comments and reorders the config to
group options together and key bindings together.
Diffstat:
1 file changed, 10 insertions(+), 13 deletions(-)
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
@@ -1,16 +1,22 @@
-# .tmux.conf
-
# Reduce escape time from 500 to 10ms for better behaviour in vim.
set-option -sg escape-time 10
-# 24-bit colour terminal, underscore, undercurl.
+# 24-bit colour terminal, underline, undercurl.
set-option -as terminal-features ',xterm-256color:RGB' # 24-bit colour.
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl.
-set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # 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' # underline.
# Enable focus events if supported by the terminal.
set-option -g focus-events on
+# Disable mouse.
+set-option -g mouse off
+
+# Disable automatic window renaming.
+set-window-option -g automatic-rename off
+
+# Highlight panes with activity in the status bar.
+set-window-option -g monitor-activity on
# Movement key bindings.
set-window-option -g mode-keys vi
set-option -g status-keys vi
@@ -32,14 +38,5 @@ bind-key b send-keys -R C-l\; clear-history
bind-key ^ split-window -h\; split-window -v\; select-pane -U\; select-pane -L
bind-key \\ split-window -h\; split-window -h\; select-layout even-horizontal\; select-pane -L
-# Disable mouse.
-set-option -g mouse off
-
-# Disable automatic window renaming.
-set-window-option -g automatic-rename off
-
-# Highlight panes with activity in the status bar.
-set-window-option -g monitor-activity on
-
# Solarized Osaka colour scheme.
source ~/.config/tmux/solarized-osaka_moon.tmux