add tmux to configuration

This commit is contained in:
Philipp 2024-06-27 13:10:15 +02:00
parent 0d971b9ff1
commit 14a0af0cce
Signed by: Philipp
GPG key ID: 9EBD8439AFBAB750
2 changed files with 39 additions and 2 deletions

View file

@ -7,7 +7,7 @@
You will need atleast following packages for it to work 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 ### 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` `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. If you just wanna restore one application config you can do so by executing it via package name.
`stow nvim` `stow nvim`

37
tmux/.tmux.conf Normal file
View file

@ -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'