From 14a0af0cce68a4a751529bce0790dd5ea2b1733b773f0f1bfaa05fe6d92cc05e Mon Sep 17 00:00:00 2001 From: Philipp Date: Thu, 27 Jun 2024 13:10:15 +0200 Subject: [PATCH] add tmux to configuration --- README.md | 4 ++-- tmux/.tmux.conf | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 tmux/.tmux.conf diff --git a/README.md b/README.md index 7ef8054..0631e84 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ You will need atleast following packages for it to work -`paru -S neovim alacritty plasma-meta zsh fzf stow` +`paru -S neovim alacritty plasma-meta zsh fzf stow tmux` ### Getting started @@ -15,7 +15,7 @@ For stow to restore the old state you have to run following command. `git clone https://git.snrd.eu/Spaenny/dotfiles.git && cd dotfiles` -`stow alacritty nvim plasma zsh` +`stow alacritty nvim plasma zsh tmux` If you just wanna restore one application config you can do so by executing it via package name. `stow nvim` diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf new file mode 100644 index 0000000..a83c93c --- /dev/null +++ b/tmux/.tmux.conf @@ -0,0 +1,37 @@ +# Setup refresh bind +unbind r +bind r source-file ~/.tmux.conf + +# General tmux settings +set -g default-terminal "screen-256color" +set -g mouse on +set -g status-interval 5 +set -g status-position top +set -g base-index 1 +set -g set-titles on +set -g automatic-rename on +setw -g automatic-rename on +setw -g renumber-windows on + +# Setup vim keybinds +setw -g mode-keys vi +bind-key h select-pane -L +bind-key j select-pane -D +bind-key k select-pane -U +bind-key l select-pane -R + +# List of plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'dracula/tmux' +set -g @plugin 'christoomey/vim-tmux-navigator' + +# Dracula customizations +set -g @dracula-show-powerline true +set -g @dracula-plugins "ssh-session cpu-usage ram-usage time" +set -g @dracula-show-flags true +set -g @dracula-show-empty-plugins false +set -g @dracula-show-left-icon window + +# Initialize TMUX plugin manager +run '~/.tmux/plugins/tpm/tpm'