diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-05-31 22:20:30 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-05-31 22:20:30 +0200 |
commit | 7d1e8075b8f156f3f8c300326abf730a1a8f2875 (patch) | |
tree | 4fff845d6cd1b66e267ef76dfad122a174f2c7a4 /.config/tmux/.tmux.conf | |
parent | 0ce9de258802b9c3259083e6f1ab5739e8e51084 (diff) |
Copying of Luke's dots
Diffstat (limited to '.config/tmux/.tmux.conf')
-rw-r--r-- | .config/tmux/.tmux.conf | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/.config/tmux/.tmux.conf b/.config/tmux/.tmux.conf index 0fda630..544585a 100644 --- a/.config/tmux/.tmux.conf +++ b/.config/tmux/.tmux.conf @@ -1,13 +1,28 @@ -# show session, window, pane in left status bar -set -g @plugin 'tmux-plugins/tpm' -set -g @plugin 'tmux-plugins/tmux-yank' -set -g @plugin "arcticicestudio/nord-tmux" +# Load tmux config +bind r source-file $HOME/.config/tmux/.tmux.conf + +# Bind prefix to C-a +set-option -g prefix C-a +unbind-key C-b +bind-key C-a send-prefix + +# Default shell +set-option -g default-shell /usr/bin/zsh # Allows vim to display colors correctly. set -g default-terminal 'screen-256color' set -ga terminal-overrides ',*256col*:Tc' -set -g status off +# Status line +set -g status on +set-option -g status-style bg=#121212,fg=white +set-option -g automatic-rename on +set-option -g renumber-windows on +set-option -g status-left "" +set -ga status-left '#[bg=black]#[fg=white] #{?window_zoomed_flag,, }' +set-option -g status-right "" +set-option -g window-status-format " #{window_index}#(echo ':')#{window_name}#{window_flag} " +set-option -g window-status-current-format " #[bold,bg=#1c1c1c] #{window_index}#(echo ':')#{window_name}#{window_flag} " #set -g default-terminal screen-256color set -g status-keys vi @@ -15,10 +30,8 @@ set -g history-limit 10000 setw -g mode-keys vi setw -g mouse off -#setw -g monitor-activity on -#setw -g alternate-screen on -# split panes using | and - +# split panes bind s split-window -h bind v split-window -v unbind '"' @@ -59,10 +72,3 @@ set -g base-index 1 # No delay for escape key press set -sg escape-time 0 - -# Reload tmux config -bind r source-file $HOME/.config/tmux/.tmux.conf - -if-shell 'test "$SSH_CONNECTION"' 'set -g status-bg red' - -run '~/.config/tmux/plugins/tpm/tpm' |