mirror of
https://github.com/anthonyoteri/dotfiles.git
synced 2026-06-05 15:46:54 -04:00
fix(tmux): adjust mouse wheel scroll speed
Signed-off-by: Anthony Oteri <4360016+anthonyoteri@users.noreply.github.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user