fix(tmux): adjust mouse wheel scroll speed

Signed-off-by: Anthony Oteri <4360016+anthonyoteri@users.noreply.github.com>
This commit is contained in:
Anthony Oteri
2026-04-29 10:26:50 -04:00
parent 7008bd9895
commit bb13297bf0
+4
View File
@@ -23,6 +23,10 @@ set-option -sa terminal-overrides ",xterm-256color:RGB"
# Enable mouse support for pane/window selection and resizing # Enable mouse support for pane/window selection and resizing
set -g mouse on 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 # (Optional) Change prefix to Ctrl+Space instead of default Ctrl+B
# Alt+Shift+H/L to switch windows (vim-style) # Alt+Shift+H/L to switch windows (vim-style)