From c50e566d13d790e2c504e506addc74a0ef438a85 Mon Sep 17 00:00:00 2001 From: clint Date: Tue, 11 Oct 2022 00:18:04 -0500 Subject: [PATCH] more tmux --- tmux/.config/tmux/statusline.conf | 32 +++++++++++++++++++++ tmux/{.tmux.conf => .config/tmux/tmux.conf} | 8 ++++-- 2 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 tmux/.config/tmux/statusline.conf rename tmux/{.tmux.conf => .config/tmux/tmux.conf} (83%) diff --git a/tmux/.config/tmux/statusline.conf b/tmux/.config/tmux/statusline.conf new file mode 100644 index 0000000..1ed1bd9 --- /dev/null +++ b/tmux/.config/tmux/statusline.conf @@ -0,0 +1,32 @@ +# stolen from: https://github.com/craftzdog/dotfiles-public/blob/master/.config/tmux/statusline.conf +# vim: ft=tmux +set -g mode-style "fg=#eee8d5,bg=#69caf0" + +set -g message-style "fg=#eee8d5,bg=#073642" +set -g message-command-style "fg=#eee8d5,bg=#073642" + +set -g pane-border-style "fg=#073642" +set -g pane-active-border-style "fg=#69caf0" + +set -g status "on" +set -g status-interval 1 +set -g status-justify "left" + +set -g status-style "fg=#586e75,bg=#073642" + +set -g status-bg "#002b36" + +set -g status-left-length "100" +set -g status-right-length "100" + +set -g status-left-style NONE +set -g status-right-style NONE + +set -g status-left "#[fg=#073642,bg=#69faf0,bold] #S #[fg=#eee8d5,bg=#93a1a1,nobold,nounderscore,noitalics]#[fg=#15161E,bg=#93a1a1,bold] #(whoami) #[fg=#93a1a1,bg=#002b36]" +set -g status-right "#[fg=#586e75,bg=#002b36,nobold,nounderscore,noitalics]#[fg=#93a1a1,bg=#586e75]#[fg=#657b83,bg=#586e75,nobold,nounderscore,noitalics]#[fg=#93a1a1,bg=#657b83]#[fg=#93a1a1,bg=#657b83,nobold,nounderscore,noitalics]#[fg=#15161E,bg=#93a1a1,bold] #h " + +setw -g window-status-activity-style "underscore,fg=#839496,bg=#69caf0" +setw -g window-status-separator "" +setw -g window-status-style "NONE,fg=#839496,bg=#69caf0" +setw -g window-status-format '#[fg=#002b36,bg=#69caf0]#[default] #I  #{b:pane_current_path} #[fg=#002b36,bg=#002b36,nobold,nounderscore,noitalics]' +setw -g window-status-current-format '#[fg=#002b36,bg=#eee8d5]#[fg=#b58900,bg=#eee8d5] #I #[fg=#eee8d5,bg=#69caf0] #{b:pane_current_path} #[fg=#b58900,bg=#69caf0,6nobold]' diff --git a/tmux/.tmux.conf b/tmux/.config/tmux/tmux.conf similarity index 83% rename from tmux/.tmux.conf rename to tmux/.config/tmux/tmux.conf index 35cbd86..0fdc97c 100644 --- a/tmux/.tmux.conf +++ b/tmux/.config/tmux/tmux.conf @@ -1,7 +1,9 @@ # remap prefix from 'C-b' to 'C-a' unbind C-b -set-option -g prefix C-a -bind-key C-a send-prefix +# set-option -g prefix C-a +# bind-key C-a send-prefix +set-option -g prefix '`' +bind-key '`' send-prefix # 0 is too far from Ctrl-a. set -g base-index 1 @@ -30,3 +32,5 @@ bind -n M-Down select-pane -D # Shift + arrow key to move between windows. bind-key -n S-Left previous-window bind-key -n S-Right next-window + +source ~/.config/tmux/statusline.conf