From 12021e66863261359954b20472893540870c7073 Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Thu, 16 Sep 2021 02:56:09 -0400 Subject: add tmux --- .gitmodules | 3 ++ tmux/.tmux.conf | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++ tmux/.tmux/plugins/tpm | 1 + 3 files changed, 87 insertions(+) create mode 100644 tmux/.tmux.conf create mode 160000 tmux/.tmux/plugins/tpm diff --git a/.gitmodules b/.gitmodules index 15410fb..4204533 100644 --- a/.gitmodules +++ b/.gitmodules @@ -16,3 +16,6 @@ [submodule "shells/.local/share/zsh/fast-syntax-highlighting"] path = shells/.local/share/zsh/fast-syntax-highlighting url = https://github.com/zdharma/fast-syntax-highlighting.git +[submodule "tmux/.tmux/plugins/tpm"] + path = tmux/.tmux/plugins/tpm + url = https://github.com/tmux-plugins/tpm diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf new file mode 100644 index 0000000..550b9d1 --- /dev/null +++ b/tmux/.tmux.conf @@ -0,0 +1,83 @@ +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' + +############################# +########## Settings +############################# + +# Refresh status line every 5 seconds - Good for when music is playing / update time etc +set -g status-interval 5 + +# Start window and pane indices at 1. +set -g base-index 1 +set -g pane-base-index 0 + +# Length of tmux status line +set -g status-left-length 30 +set -g status-right-length 150 + +set-option -g status "on" + +# Default statusbar color +set-option -g status-style bg=colour237,fg=colour223 # bg=bg1, fg=fg1 + +# Default window title colors +set-window-option -g window-status-style bg=colour214,fg=colour237 # bg=yellow, fg=bg1 + +# Default window with an activity alert +set-window-option -g window-status-activity-style bg=colour237,fg=colour248 # bg=bg1, fg=fg3 + +# Active window title colors +set-window-option -g window-status-current-style bg=red,fg=colour237 # fg=bg1 + +# Set active pane border color +set-option -g pane-active-border-style fg=colour214 + +# Set inactive pane border color +set-option -g pane-border-style fg=colour239 + +# Message info +set-option -g message-style bg=colour239,fg=colour223 # bg=bg2, fg=fg1 + +# Writing commands inactive +set-option -g message-command-style bg=colour239,fg=colour223 # bg=fg3, fg=bg1 + +# Pane number display +set-option -g display-panes-active-colour colour1 #fg2 +set-option -g display-panes-colour colour237 #bg1 + +# Clock +set-window-option -g clock-mode-colour colour109 #blue + +# Bell +set-window-option -g window-status-bell-style bg=colour167,fg=colour235 # bg=red, fg=bg + +set-option -g status-left "\ +#[fg=colour7, bg=colour241]#{?client_prefix,#[bg=colour167],} ❐ #S \ +#[fg=colour241, bg=colour237]#{?client_prefix,#[fg=colour167],}#{?window_zoomed_flag, 🔍,}" + +set-option -g status-right "\ +#[fg=colour214, bg=colour237] \ +#[fg=colour237, bg=colour214] #(~/dotfiles/tmux_scripts/music.sh) \ +#[fg=colour223, bg=colour237] #(~/dotfiles/tmux_scripts/uptime.sh) \ +#[fg=colour246, bg=colour237]  %b %d '%y\ +#[fg=colour109]  %H:%M \ +#[fg=colour248, bg=colour239]" + +set-window-option -g window-status-current-format "\ +#[fg=colour237, bg=colour214]\ +#[fg=colour239, bg=colour214] #I* \ +#[fg=colour239, bg=colour214, bold] #W \ +#[fg=colour214, bg=colour237]" + +set-window-option -g window-status-format "\ +#[fg=colour237,bg=colour239,noitalics]\ +#[fg=colour223,bg=colour239] #I \ +#[fg=colour223, bg=colour239] #W \ +#[fg=colour239, bg=colour237]" + +# Set the history limit so we get lots of scrollback. +setw -g history-limit 50000000 + + +run '~/.tmux/plugins/tpm/tpm' diff --git a/tmux/.tmux/plugins/tpm b/tmux/.tmux/plugins/tpm new file mode 160000 index 0000000..693e5a2 --- /dev/null +++ b/tmux/.tmux/plugins/tpm @@ -0,0 +1 @@ +Subproject commit 693e5a2a0f6acfd2666882655d5dfd32e8c6c50b -- cgit v1.2.3