Add tmux config file

This commit is contained in:
Felix Suchert 2022-10-27 11:48:35 +02:00
parent fa118518a4
commit 17a704977b
Signed by: feliix42
GPG key ID: 24363525EA0E8A99
2 changed files with 52 additions and 0 deletions

51
entropy/.tmux.conf Normal file
View file

@ -0,0 +1,51 @@
set-option -g default-command "/run/current-system/sw/bin/fish"
set -g default-terminal "screen-256color"
set -ag terminal-overrides ",screen-256color:RGB"
# plugins
set -g @plugin 'thewtex/tmux-mem-cpu-load'
# Remap prefix to C-a
set -g prefix 'C-a'
unbind-key C-b
unbind-key C-a
# open windows in same directory
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# vi-like keybindings
set-window-option -g mode-keys vi
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# mouse passthrough
set -g mouse on
unbind -T copy-mode MouseDragEnd1Pane
bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel "reattach-to-user-namespace wl-copy"
# status bar config
set-option -g status on
set-option -g status-interval 1
set-option -g status-justify centre
set-option -g status-keys vi
set-option -g status-position bottom
set-option -g status-style fg=colour136,bg=colour235
set-option -g status-left-length 20
set-option -g status-left-style default
set-option -g status-left "#[fg=green,bright]#(whoami)#[default]"
set-option -g status-right-length 140
set-option -g status-right-style default
set-option -g status-right "#[fg=green,bg=default,bright]#(tmux-mem-cpu-load -a 0) "
set-window-option -g window-status-style fg=colour244
set-window-option -g window-status-style bg=default
set-window-option -g window-status-current-style fg=colour166
set-window-option -g window-status-current-style bg=default

View file

@ -94,6 +94,7 @@ ln -s $PWD/alacritty ~/.config/alacritty
ln -s $PWD/nyxt/ ~/.config/next
ln -s $PWD/mako/ ~/.config/mako
ln -s $PWD/.urlview ~/.urlview
ln -s $PWD/.tmux.conf ~/.tmux.conf
ln -s $PWD/.gitconfig ~/.gitconfig
ln -s $PWD/git-commit-template.txt ~/.gitcommit_template
mkdir -p ~/.config/fish/