diff --git a/configs/tmux.conf b/configs/tmux.conf index b2b8bb1..87399ac 100644 --- a/configs/tmux.conf +++ b/configs/tmux.conf @@ -2,6 +2,7 @@ # unbind C-b # set -g prefix C-p + # More straight forward key bindings for splitting unbind % bind | split-window -h @@ -25,14 +26,14 @@ set -g visual-activity on # Clock -#setw -g clock-mode-colour green -#setw -g clock-mode-style 24 +setw -g clock-mode-colour green +setw -g clock-mode-style 24 +# make scrolling with wheels work +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'" + # Mouse Support -set -g mode-mouse on -set -g mouse-resize-pane on -set -g mouse-select-pane on -set -g mouse-select-window on +setw -g mouse # Add SSH_TTY to the list of environment variables tmux knows about: set-option -g update-environment "DISPLAY SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY SSH_TTY" @@ -55,4 +56,3 @@ setw -g window-status-current-bg colour234 setw -g window-status-current-fg colour71 new-session -