From 75caf5690085c754579fed7679c1e2df6710bb26 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 Feb 2012 13:04:19 +1300 Subject: Lots of tmux changes. Use full command names for clarity. Turn on window activity monitoring and set colours for it. Include the window status indicator back again. Group set-window-option calls together at the end of the file. Set the colour of both message dialogs and selection dialogs. --- tmux/tmux.conf | 58 +++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 37 insertions(+), 21 deletions(-) (limited to 'tmux/tmux.conf') diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 69266f06..c67dd116 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -1,6 +1,6 @@ # Set the prefix to C-A. unbind-key C-b -set -g prefix C-a +set-option -g prefix C-a # GNU Screen rebindings. unbind-key '"' @@ -58,36 +58,52 @@ bind-key -t vi-copy 'v' begin-selection bind-key -t vi-copy 'y' copy-selection # Terminal settings. -set -g default-terminal "screen-256color" +set-option -g default-terminal "screen-256color" # Start window numbering at 1, not 0. -set -g base-index 1 +set-option -g base-index 1 # Don't worry about escape sequences. -set -s escape-time 0 - -# Use Vi mode. -setw -g mode-keys vi +set-option -s escape-time 0 # Spiffy colours. -set -g status-fg colour248 -set -g status-bg colour237 -set -g pane-border-bg colour237 -set -g pane-border-fg colour237 -set -g pane-active-border-bg colour237 -set -g pane-active-border-fg colour237 - -# Use two-space separators, and forget the status indicator. -set-window-option -g window-status-format "#[fg=colour16]#I #W " -set-window-option -g window-status-current-format "#[fg=colour231]#I #W " +set-option -g status-fg colour248 +set-option -g status-bg colour237 +set-option -g pane-border-fg colour237 +set-option -g pane-border-bg colour237 +set-option -g pane-active-border-fg colour237 +set-option -g pane-active-border-bg colour237 # Set status bar text to the left and right. -set -g status-left '[#S]' -set -g status-right '[#H] #(date +"%F %T")' +set-option -g status-left '[#S]' +set-option -g status-right '[#H] #(date +"%F %T")' # Fix freezing issue. -set -g set-titles off +set-option -g set-titles off # Sane scrolling. -set -g terminal-overrides 'xterm*:smcup@:rmcup@' +set-option -g terminal-overrides 'xterm*:smcup@:rmcup@' + +# Set colours for messages and status lines. +set-option -g message-fg colour231 +set-option -g message-bg colour18 + +# Use Vi mode. +set-window-option -g mode-keys vi + +# Use two-space separators, and forget the status indicator. +set-window-option -g window-status-format "#[fg=colour16]#I #W#F " +set-window-option -g window-status-current-format "#[fg=colour231]#I #W#F " + +# Set colours for choosing dialogs. +set-window-option -g mode-fg colour231 +set-window-option -g mode-bg colour18 + +# Monitor window activity. +set-window-option -g monitor-activity on + +# Make windows with activity a slightly brighter shade of grey. +set-window-option -g window-status-alert-attr none +set-window-option -g window-status-alert-fg colour248 +set-window-option -g window-status-alert-bg colour240 -- cgit v1.2.3