From 2c610619f4a25af94a89cd36e886788ddc8b7136 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 10 Jul 2014 17:53:18 +0200 Subject: tmux + misc Signed-off-by: Florian Pritz --- .tmux.conf | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) (limited to '.tmux.conf') diff --git a/.tmux.conf b/.tmux.conf index 35eb29a..ea6d25d 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -18,28 +18,36 @@ set -g message-bg default set -g message-fg red set -g status-attr bright -set -g status-bg default +set -g status-bg black set -g status-fg default set -g pane-active-border-fg default set -g pane-active-border-bg black # Options -set -g bell-action none +set -g bell-action any set -g history-limit 50000 set -g status on set -g status-keys vi set -g status-utf8 on set -g set-titles on -set -g status-left " -- #S -- " -set -g status-left-length 30 -set -g status-right "" +set -g default-terminal "screen-256color" +set -g set-titles-string "tmux:#I [ #W ]" +set -g base-index 1 + +#set -g status-left-length 30 +set -g status-left '#[fg=green]#H #[fg=black,bright]• #[default]#[fg=blue]#(uname -r)#[default] #[fg=black,bright]• #[default]' +set -g status-justify centre +set -g status-right '#[fg=black,bright]• #[fg=magenta]#(cut -d " " -f1-4 /proc/loadavg)' +set -g status-left-length 40 +set -g status-right-length 40 setw -g utf8 on setw -g automatic-rename on setw -g clock-mode-style 24 setw -g mode-keys vi +setw -g mode-mouse on set -g prefix C-a unbind-key C-b @@ -49,8 +57,12 @@ bind-key C-a send-prefix bind-key W command-prompt "swap-window -t '%%'" bind-key R command-prompt "rename-session '%%'" -bind j down-pane -bind k up-pane +# confirm before killing a window or the server +bind-key k confirm kill-window +bind-key K confirm kill-server + +#bind j down-pane +#bind k up-pane # Keys to switch session. #bind q switchc -tmain @@ -60,16 +72,9 @@ bind k up-pane bind i choose-window #bind m split-window "exec ncmpcpp" -#256 -set -g default-terminal "screen-256color" - # Default Sessions #new -d -s maini -set -g set-titles-string "tmux:#I [ #W ]" -set -g base-index 1 -set -g bell-action any - bind-key b set-option status bind r source-file ~/.tmux.conf -- cgit v1.2.3-24-g4f1b