diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index d87e325..72ec9c1 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -1,11 +1,19 @@ -# Stop tmux from override terminal colors -set-option -ga terminal-overrides ",xterm-256color:Tc" +set -g default-terminal "tmux-256color" +set -ga terminal-overrides ",*256col*:Tc" # Change tmux prefix unbind C-b set-option -g prefix C-a bind-key C-a send-prefix +set -g mouse on +#set -g mouse-resize-pane on +#set -g mouse-select-pane on +#set -g mouse-select-window on +# For newer versions of tmux: +set -g mouse on +bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; #send-keys -M'" +bind -n WheelDownPane select-pane -t= \; send-keys -M set -g status-style 'bg=#333333 fg=#5eacd3' # Vim-like visual mode and yanking