config-files/.tmux.conf

33 lines
1.0 KiB
Plaintext
Raw Normal View History

2020-11-10 20:00:15 -05:00
setw -g mode-keys vi
set -g status-keys vi
2022-09-16 10:10:25 -04:00
set -g default-terminal "xterm-256color"
2020-11-10 20:00:15 -05:00
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# don't rename windows automatically
set-option -g allow-rename off
2021-03-10 01:09:49 -05:00
# add mouse scrolling
set -g mouse on
2020-11-10 20:00:15 -05:00
2021-03-10 01:09:49 -05:00
# smart pane switching with awareness of vim splits
2020-11-10 20:00:15 -05:00
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
2022-12-11 11:07:30 -05:00
set-option -g status on
set-option -g status-interval 2
set-option -g status-justify "centre"
set-option -g status-left-length 60
set-option -g status-right-length 90
set-option -g status-left "#(~/share/tmux-powerline/powerline.sh left)"
set-option -g status-right "#(~/share/tmux-powerline/powerline.sh right)"
set-hook -g session-created 'run-shell "~/share/tmux-powerline/powerline.sh init"' # prettifies the window-status segments
bind C-[ run '~/share/tmux-powerline/mute_powerline.sh left' # Mute left statusbar.
bind C-] run '~/share/tmux-powerline/mute_powerline.sh right' # Mute right statusbar.