diff --git a/entropy/.tmux.conf b/entropy/.tmux.conf new file mode 100644 index 0000000..6ac148e --- /dev/null +++ b/entropy/.tmux.conf @@ -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 + diff --git a/entropy/initialize.sh b/entropy/initialize.sh index 195d575..765c817 100755 --- a/entropy/initialize.sh +++ b/entropy/initialize.sh @@ -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/