diff options
| author | David Kaufmann <astra@ionic.at> | 2017-12-11 08:36:00 +0100 |
|---|---|---|
| committer | David Kaufmann <astra@ionic.at> | 2017-12-11 08:36:00 +0100 |
| commit | 54e6915f91c151a048cd760b4f25f0c2c8902583 (patch) | |
| tree | 1e0c252ee579de09a8069d5b4db2cb055a506036 /home | |
| parent | 1325d914c43e2580963f418486e1b1b66679de9b (diff) | |
| download | config-54e6915f91c151a048cd760b4f25f0c2c8902583.tar.gz | |
update tmux config
Diffstat (limited to 'home')
| -rw-r--r-- | home/.tmux.conf | 60 |
1 files changed, 46 insertions, 14 deletions
diff --git a/home/.tmux.conf b/home/.tmux.conf index 4cc2c59..3641cd5 100644 --- a/home/.tmux.conf +++ b/home/.tmux.conf @@ -12,11 +12,10 @@ bind-key Enter break-pane # Set that stupid Esc-Wait off, so VI works again set-option -sg escape-time 0 -set-option -g repeat-time 500 +set-option -g repeat-time 400 -set-option -g history-limit 16000 -#set-option -g default-terminal screen-256color -set-option -g default-terminal rxvt +set-option -g history-limit 65536 +set-option -g default-terminal screen-256color # Set action on window bell. any means a bell in any window linked to a # session causes a bell in the current window of that session, none means @@ -34,9 +33,12 @@ set-option -g visual-bell off # visual-silence: on = status line message, off = bell on monitor-silence set-option -g visual-silence off +# monitor-activity: bell on activity +set-window-option -g monitor-activity off + # mouse options changed in v2.1 # enable mouse support -set -g mouse on +#set -g mouse on # v2.2 has auto-utf8-detection #set-option -g utf8 on @@ -46,15 +48,13 @@ bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= bind -n WheelDownPane select-pane -t= \; send-keys -M # enable Shift-PageUp/-PageDown -bind-key -t vi-copy -n S-PPage halfpage-up -bind-key -t vi-copy -n S-NPage halfpage-down +#bind-key -t copy-mode-vi -n S-PPage halfpage-up +#bind-key -t copy-mode-vi -n S-NPage halfpage-down set-window-option -g aggressive-resize on set-option -g renumber-windows on -set-option -g status-bg brightgreen -set-option -g status-fg black set-option -g status-left '[ #H ][ #S ][' set-option -g status-left-length 32 set-option -g status-right '][ load #(cut -d " " -f 1-3 /proc/loadavg) ][ %Y-%m-%d %H:%M ]' @@ -63,8 +63,40 @@ set-option -g status-right-length 48 # don't rename windows automatically #set-option -g allow-rename off -# switch panes using Alt-arrow without prefix -bind -n M-Left select-pane -L -bind -n M-Right select-pane -R -bind -n M-Up select-pane -U -bind -n M-Down select-pane -D +# alt belongs to irssi +unbind-key -n M-Left +unbind-key -n M-Right +unbind-key -n M-Up +unbind-key -n M-Down + +# color options (panes) +set -g pane-border-fg black +set -g pane-active-border-fg brightred + +# status bar design +set-option -g status-bg black +set-option -g status-fg green +set-option -g status-attr dim + +# messaging +set -g message-bg black +set -g message-fg brightgreen +set -g message-command-bg black +set -g message-command-fg brightred + +# window mode +setw -g mode-fg green +setw -g mode-bg black + +# window status +setw -g window-status-format "#[bg=black]#[fg=green] #I #[bg=black]#[fg=green]#W#F " +setw -g window-status-current-format "#[bg=green]#[fg=black] #I #[bg=green]#[fg=black]#W#F " +setw -g window-status-current-bg red +setw -g window-status-current-fg yellow +setw -g window-status-current-attr bold +setw -g window-status-bg green +setw -g window-status-fg black + +setw -g window-status-bell-bg red +setw -g window-status-bell-bg black +setw -g window-status-bell-attr bold |
