dotfiles/.tmux.conf##template

41 lines
1.1 KiB
Text

# Auto install if not present
if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-net-speed'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @resurrect-capture-pane-contents 'on'
{% if yadm.os == "Darwin" %}
set -g @plugin 'tmux-plugins/tmux-battery'
{% endif %}
# Settings
{% if yadm.os == "Darwin" %}
set -g status-right "#{battery_status_bg} Batt: #{battery_percentage} #{battery_remain}"
{% else %}
set -g status-right "#{net_speed} | %H:%M"
{% endif %}
set-option -g default-shell /bin/zsh # default shell
set -g default-terminal "screen-256color"
setw -g mode-keys vi
bind j resize-pane -D 5
bind k resize-pane -U 5
bind h resize-pane -L 10
bind l resize-pane -R 10
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'