dotfiles/tmux/tmux.conf
c47 204737ef0c
Add TPM and srcery theme to tmux
Installed TPM - tmux plugin manager - and the srcery theme via git and
added configuration to ~/.config/tmux/tmux.conf
2024-04-05 09:38:41 +02:00

70 lines
1.6 KiB
Plaintext

#
# General stuff
set -g prefix C-a
set -g base-index 1
set -s escape-time 1
set -g default-terminal "tmux"
set -g status-interval 120
bind -n C-M-h previous-window
bind -n C-M-l next-window
setw -g mode-keys vi
bind r source ~/.config/tmux/tmux.conf \; display "tmux.conf reloaded"
bind -r < resize-pane -L 3
bind -r > resize-pane -R 3
bind -r + resize-pane -D 3
bind -r = resize-pane -U 3
#
# vim-like movement
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind C new-window -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
# Use F12 to switch between inner and outer session in
# in case of nested sessions to contol where to send
# tmux commands.
bind -T root F12 \
set prefix None \;\
set key-table off \;\
if -F '#{pane_in_mode}' 'send-keys -X cancel' \;\
refresh-client -S \;\
bind -T off F12 \
set -u prefix \;\
set -u key-table \;\
refresh-client -S
#
# Status bar settings
#set -g status-position bottom
#set -g status-justify centre
#set -g status-style 'bg=black fg=yellow'
#set -g status-left-length 50
#set -g window-status-style 'bg=black fg=yellow'
#set -g window-status-current-style 'bg=yellow fg=black'
#
#set -g status-right ' %Y-%m-%d .:. %H:%M '
#
# TPM - tmux plugin manager
set -g @plugin 'tmux-plugins/tpm'
## srcery color scheme
set -g @plugin 'srcery-colors/srcery-tmux'
set -g @srcery_tmux_patched_font '1'
run -b ~/.config/tmux/themes/srcery-tmux/srcery.tmux
# Initialize TPM.. keep this line at the very bottom of this file
run '~/.config/tmux/plugins/tpm/tpm'