From bb13297bf0db2df4f7d221bd0acab439cbd61270 Mon Sep 17 00:00:00 2001 From: Anthony Oteri <4360016+anthonyoteri@users.noreply.github.com> Date: Wed, 29 Apr 2026 10:26:50 -0400 Subject: [PATCH] fix(tmux): adjust mouse wheel scroll speed Signed-off-by: Anthony Oteri <4360016+anthonyoteri@users.noreply.github.com> --- .config/tmux/tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index bec052f..93dc9f9 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -23,6 +23,10 @@ set-option -sa terminal-overrides ",xterm-256color:RGB" # Enable mouse support for pane/window selection and resizing set -g mouse on +# Reduce scroll speed (3 lines per notch) +bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e; send-keys -N 3 Up'" +bind -n WheelDownPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'send-keys -N 3 Down'" + # (Optional) Change prefix to Ctrl+Space instead of default Ctrl+B # Alt+Shift+H/L to switch windows (vim-style)