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)