From 3e12006facb939e587d9e82d0b1ba42177698f9e Mon Sep 17 00:00:00 2001 From: Sebastian Burschel Date: Thu, 29 Aug 2024 15:59:52 +0200 Subject: [PATCH] Add .tmux.conf --- .tmux.conf | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .tmux.conf diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..15ad70c --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,36 @@ +# run: git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm + +# 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-battery' +set -g @plugin 'tmux-plugins/tmux-continuum' +set -g @resurrect-capture-pane-contents 'on' + + + +# Settings +set -g status-right "#{battery_status_bg} Batt: #{battery_percentage} | %H:%M" +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' + +