diff options
author | Daniil Rozanov <dev@drozanov.info> | 2024-11-19 01:54:52 +0400 |
---|---|---|
committer | Daniil Rozanov <dev@drozanov.info> | 2024-11-19 01:54:52 +0400 |
commit | 09d3ff48daf832e0830e6a3b363af094ad63a4f1 (patch) | |
tree | df535f75968a494a0df12b85cbf097e3e533316f /tmux | |
parent | 8bb6d89194e25990b8376f9c9700a61103fb7a66 (diff) |
alacritty
Diffstat (limited to 'tmux')
-rw-r--r-- | tmux/.tmux.conf | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf new file mode 100644 index 0000000..8fec4b2 --- /dev/null +++ b/tmux/.tmux.conf @@ -0,0 +1,91 @@ +# Keybindings +setw -g mode-keys vi +bind-key k select-pane -U +bind-key j select-pane -D +bind-key h select-pane -L +bind-key l select-pane -R +bind-key M-k resize-pane -U 5 +bind-key M-j resize-pane -D 5 +bind-key M-h resize-pane -L 5 +bind-key M-l resize-pane -R 5 +bind 'v' copy-mode + + +unbind '"' +unbind % +bind-key "\\" split-window -h -c "#{pane_current_path}" +bind-key "|" split-window -fh -c "#{pane_current_path}" +bind-key "-" split-window -v -c "#{pane_current_path}" +bind-key "_" split-window -fv -c "#{pane_current_path}" + +unbind c +bind c new-window -c "#{pane_current_path}" + +unbind r +bind r source-file $HOME/.tmux.conf + +set -g prefix C-s + +# start window numbers at 1 to match keyboard order with tmux window order +set -g base-index 1 +set-window-option -g pane-base-index 1 + +# renumber windows sequentially after closing any of them +set -g renumber-windows on + +# remove administrative debris (session name, hostname, time) in status bar +set -g status-left '' +set -g status-right '' + +# increase scrollback lines +set -g history-limit 50000 + +# don't suspend-client +unbind-key C-z + + +# Style + +# Dark grey background +set -g default-terminal "screen-256color" +set -ag terminal-overrides ",xterm-256color:Tc" + +# Pane border +set -g pane-border-style fg=cyan +set -g pane-active-border-style fg=green + +# Status bar +set -g status-style bg=black,fg=yellow +set -g window-status-style fg=green,bold + +# Message/input +set -g message-style bg=black,fg=white + +# Pane text +set -g pane-border-style fg=white + + +# Plugins +set-environment -g TMUX_PLUGIN_MANAGER_PATH $XDG_DATA_HOME/tmux/plugins/ + +# List of plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'tmux-plugins/tmux-yank' + +set -g @plugin 'tmux-plugins/tmux-resurrect' +set -g @plugin 'tmux-plugins/tmux-continuum' +set -g @plugin 'tmux-plugins/tmux-sessionist' + +# restore: neovim session, automatic +set -g @resurrect-strategy-nvim 'session' +set -g @resurrect-capture-pane-contents 'on' +set -g @continuum-restore 'on' +set -g @continuum-save-interval '5' + +run $XDG_DATA_HOME'/tmux/plugins/tpm/tpm' +run-shell $XDG_DATA_HOME'/tmux/plugins/tmux-continuum/continuum.tmux' +run-shell $XDG_DATA_HOME'/tmux/plugins/tmux-sessionist/sessionist.tmux' +run-shell $XDG_DATA_HOME'/tmux/plugins/tmux-resurrect/resurrect.tmux' + + |