From f1fddcd9b29ccaad464a73bd650c626db162c4f9 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Tue, 3 Sep 2019 22:36:36 +0200 Subject: tmux: use includes, full color status bar --- tmux/.tmux.aws.conf | 37 +++---------------------------------- tmux/.tmux.common.conf | 34 ++++++++++++++++++++++++++++++++++ tmux/.tmux.conf | 44 +++----------------------------------------- tmux/.tmux.default.conf | 37 +++---------------------------------- tmux/.tmux.gcloud.conf | 35 ++--------------------------------- tmux/.tmux.uberspace.conf | 37 +++---------------------------------- 6 files changed, 48 insertions(+), 176 deletions(-) create mode 100644 tmux/.tmux.common.conf diff --git a/tmux/.tmux.aws.conf b/tmux/.tmux.aws.conf index 9758db2..b5c1abd 100644 --- a/tmux/.tmux.aws.conf +++ b/tmux/.tmux.aws.conf @@ -1,36 +1,5 @@ -# act like vim -setw -g mode-keys vi -bind h select-pane -L -bind j select-pane -D -bind k select-pane -U -bind l select-pane -R -bind-key -r C-h select-window -t :- -bind-key -r C-l select-window -t :+ +source-file ~/.tmux.common.conf -# act like GNU screen -unbind C-b -set -g prefix C-a - -# look good -set -g default-terminal "screen-256color" - -# status -set -g status-left-length 32 -set -g status-right-length 150 -set -g status-fg white -set -g status-bg colour234 -set -g window-status-activity-attr bold -set -g pane-border-fg colour245 -set -g pane-active-border-fg yellow -set -g message-fg colour16 -set -g message-bg colour221 -set -g message-attr bold -set -g status-left '' -set -g status-right '#[fg=black,bg=yellow] #H:#[bold]#S ' -set-option -g set-titles on -set -g set-titles-string '#T -- #W' -set-window-option -g automatic-rename on -set-option -g status-interval 1 -set-option -g status-utf8 on -set-window-option -g utf8 on +set -g status-bg yellow +set -g status-fg black diff --git a/tmux/.tmux.common.conf b/tmux/.tmux.common.conf new file mode 100644 index 0000000..5de73ad --- /dev/null +++ b/tmux/.tmux.common.conf @@ -0,0 +1,34 @@ +# act like vim +setw -g mode-keys vi +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R +bind-key -r C-h select-window -t :- +bind-key -r C-l select-window -t :+ + +# act like GNU screen +unbind C-b +set -g prefix C-a + +# look good +set -g default-terminal "screen-256color" + +# status +set -g status-left-length 32 +set -g status-right-length 150 +set -g status-left '' +set -g status-right '#[fg=white,bg=black] #S ' +set-option -g set-titles on +# #H Hostname of local host +# #I Current window index +# #P Current pane index +# #S Session name +# #T Current window title +# #W Current window name +# ## A literal ‘#’ +set -g set-titles-string '#T -- #W' +set-window-option -g automatic-rename on +set-option -g status-interval 1 +set-option -g history-limit 10000 + diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 6d56b15..a1cdddd 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -1,43 +1,5 @@ -# act like vim -setw -g mode-keys vi -bind h select-pane -L -bind j select-pane -D -bind k select-pane -U -bind l select-pane -R -bind-key -r C-h select-window -t :- -bind-key -r C-l select-window -t :+ +source-file ~/.tmux.common.conf -# act like GNU screen -unbind C-b -set -g prefix C-a - -# look good -set -g default-terminal "screen-256color" - -# status -set -g status-left-length 32 -set -g status-right-length 150 -set -g status-fg white -set -g status-bg colour234 -set -g window-status-activity-attr bold -set -g pane-border-fg colour245 -set -g pane-active-border-fg magenta -set -g message-fg colour16 -set -g message-bg colour221 -set -g message-attr bold -set -g status-left '' -set -g status-right '#[fg=colour235,bg=colour13,bold] #S ' -set-option -g set-titles on -# #H Hostname of local host -# #I Current window index -# #P Current pane index -# #S Session name -# #T Current window title -# #W Current window name -# ## A literal ‘#’ -set -g set-titles-string '#T -- #W' -set-window-option -g automatic-rename on -set-option -g status-interval 1 -set-option -g status-utf8 on -set-window-option -g utf8 on +set -g status-bg colour13 +set -g status-fg colour235 diff --git a/tmux/.tmux.default.conf b/tmux/.tmux.default.conf index 23141ed..728a475 100644 --- a/tmux/.tmux.default.conf +++ b/tmux/.tmux.default.conf @@ -1,36 +1,5 @@ -# act like vim -setw -g mode-keys vi -bind h select-pane -L -bind j select-pane -D -bind k select-pane -U -bind l select-pane -R -bind-key -r C-h select-window -t :- -bind-key -r C-l select-window -t :+ +source-file ~/.tmux.common.conf -# act like GNU screen -unbind C-b -set -g prefix C-a - -# look good -set -g default-terminal "screen-256color" - -# status -set -g status-left-length 32 -set -g status-right-length 150 -set -g status-fg white -set -g status-bg colour234 -set -g window-status-activity-attr bold -set -g pane-border-fg colour245 -set -g pane-active-border-fg white -set -g message-fg colour16 -set -g message-bg colour221 -set -g message-attr bold -set -g status-left '' -set -g status-right '#[fg=black,bg=white] #H:#[bold]#S ' -set-option -g set-titles on -set -g set-titles-string '#T -- #W' -set-window-option -g automatic-rename on -set-option -g status-interval 1 -set-option -g status-utf8 on -set-window-option -g utf8 on +set -g status-bg white +set -g status-fg black diff --git a/tmux/.tmux.gcloud.conf b/tmux/.tmux.gcloud.conf index b3a2776..d518764 100644 --- a/tmux/.tmux.gcloud.conf +++ b/tmux/.tmux.gcloud.conf @@ -1,36 +1,5 @@ -# act like vim -setw -g mode-keys vi -bind h select-pane -L -bind j select-pane -D -bind k select-pane -U -bind l select-pane -R -bind-key -r C-h select-window -t :- -bind-key -r C-l select-window -t :+ +source-file ~/.tmux.common.conf -# act like GNU screen -unbind C-b -set -g prefix C-a - -# look good -set -g default-terminal "screen-256color" - -# status -set -g status-left-length 32 -set -g status-right-length 150 +set -g status-bg blue set -g status-fg white -set -g status-bg colour234 -set -g window-status-activity-attr bold -set -g pane-border-fg colour245 -set -g pane-active-border-fg blue -set -g message-fg colour16 -set -g message-bg colour221 -set -g message-attr bold -set -g status-left '' -set -g status-right '#[fg=white,bg=blue] #H:#[bold]#S ' -set-option -g set-titles on -set -g set-titles-string '#T -- #W' -set-window-option -g automatic-rename on -set-option -g status-interval 1 -set-option -g status-utf8 on -set-window-option -g utf8 on diff --git a/tmux/.tmux.uberspace.conf b/tmux/.tmux.uberspace.conf index ac7d751..b8208d7 100644 --- a/tmux/.tmux.uberspace.conf +++ b/tmux/.tmux.uberspace.conf @@ -1,36 +1,5 @@ -# act like vim -setw -g mode-keys vi -bind h select-pane -L -bind j select-pane -D -bind k select-pane -U -bind l select-pane -R -bind-key -r C-h select-window -t :- -bind-key -r C-l select-window -t :+ +source-file ~/.tmux.common.conf -# act like GNU screen -unbind C-b -set -g prefix C-a - -# look good -set -g default-terminal "screen-256color" - -# status -set -g status-left-length 32 -set -g status-right-length 150 -set -g status-fg white -set -g status-bg colour234 -set -g window-status-activity-attr bold -set -g pane-border-fg colour245 -set -g pane-active-border-fg green -set -g message-fg colour16 -set -g message-bg colour221 -set -g message-attr bold -set -g status-left '' -set -g status-right '#[fg=black,bg=green] #H:#[bold]#S ' -set-option -g set-titles on -set -g set-titles-string '#T -- #W' -set-window-option -g automatic-rename on -set-option -g status-interval 1 -set-option -g status-utf8 on -set-window-option -g utf8 on +set -g status-bg green +set -g status-fg black -- cgit v1.2.3