dotfiles/tmux/.tmux.conf

32 lines
957 B
Plaintext
Raw Permalink Normal View History

2024-05-21 23:04:58 +00:00
set -sa terminal-features ",screen-256colo*:RGB"
2024-05-21 21:27:06 +00:00
set-option -g default-terminal "screen-256color"
2024-05-21 23:04:58 +00:00
set-option -g focus-events on
2024-05-21 21:27:06 +00:00
set -s escape-time 0
unbind C-b
2024-05-23 16:22:50 +00:00
set-option -g prefix C-l
bind-key C-l send-prefix
set -g repeat-time 1000
2024-05-21 21:27:06 +00:00
set -g status-style 'bg=#333333 fg=#5eacd3'
2024-05-23 16:22:50 +00:00
set -g status-right "#{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,}\"#{=21:pane_title}\" %H:%M %d-%b-%y #(tms sessions)"
2024-05-21 21:27:06 +00:00
bind r source-file ~/.tmux.conf
set -g base-index 1
2024-05-23 16:22:50 +00:00
bind C-o display-popup -E "tms"
bind C-l display-popup -E "tms switch"
bind C-w display-popup -E "tms windows"
bind C-r "run-shell 'tms refresh'"
2024-05-21 21:27:06 +00:00
set-window-option -g mode-keys vi
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
# vim-like pane switching
2024-05-22 14:51:38 +00:00
bind -r a last-window
2024-05-21 21:27:06 +00:00
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
2024-05-21 22:12:30 +00:00
set -g mouse on