diff --git a/.tmux.conf b/.tmux.conf index 742a09fe..0772e33c 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,3 +1,4 @@ +#set -g default-terminal "tmux-256color" set -g default-terminal "xterm-256color" #set -ga terminal-overrides ",*256col*:Tc" set -ga terminal-overrides ",xterm-256color:Tc" @@ -5,6 +6,7 @@ set -ga terminal-overrides ",xterm-256color:Tc" unbind C-b set-option -g prefix C-t set-option -g repeat-time 0 +set-option -g focus-events on #### Key bindings @@ -82,5 +84,4 @@ set -g set-titles-string "#T" # import if-shell "uname -s | grep -q Darwin" "source ~/.tmux.conf.osx" -# Powerline -source ~/.tmux.powerline.conf +source ~/.tmux.statusline.conf diff --git a/.tmux.conf.osx b/.tmux.conf.osx index 266151b5..914c9512 100644 --- a/.tmux.conf.osx +++ b/.tmux.conf.osx @@ -1,2 +1,7 @@ -# sync clipboard +# osx clipboard set-option -g default-command "which reattach-to-user-namespace > /dev/null && reattach-to-user-namespace -l $SHELL || $SHELL" + +# Undercurl +set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support +set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0 + diff --git a/.tmux.statusline.conf b/.tmux.statusline.conf new file mode 100644 index 00000000..4602a61b --- /dev/null +++ b/.tmux.statusline.conf @@ -0,0 +1,31 @@ +# vim: ft=tmux +set -g mode-style "fg=#eee8d5,bg=#073642" + +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=#eee8d5" + +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=#eee8d5,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] #{prefix_highlight} #[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=#002b36" +setw -g window-status-separator "" +setw -g window-status-style "NONE,fg=#839496,bg=#002b36" +setw -g window-status-format '#[fg=#002b36,bg=#002b36]#[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=#b58900] #{b:pane_current_path} #[fg=#b58900,bg=#002b36,nobold]'