X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=tmux.conf;h=f44bc548bb77f51d843208e11c400a6a1025de5d;hb=755c8eadfb8b252af437c0c44b4270a289cb4d0b;hp=25a38e5908c70e10bab080182d639d35c1a0b7db;hpb=8f0078795a5b4c04ff4d3d9af55685e5a741d222;p=~madcoder%2Fdotfiles.git diff --git a/tmux.conf b/tmux.conf index 25a38e5..f44bc54 100644 --- a/tmux.conf +++ b/tmux.conf @@ -1,11 +1,13 @@ # set the prefix to ^G -set -g history-limit 100000 - +set -g default-terminal screen-256color +set -g history-limit 100000 set -g mouse-select-pane on -setw -g mode-mouse on -set -g status-keys vi -setw -g mode-keys vi +set -wg mode-mouse on +set -wg xterm-keys 1 +set -g status-keys vi +set -wg mode-keys vi +set -s escape-time 100 unbind C-b set -g prefix C-g @@ -15,21 +17,33 @@ bind C-g send-prefix bind -n F5 source ~/.tmux.conf bind -n M-x command-prompt -bind n next-window -bind p previous-window -bind s command-prompt "split-window -v '%%'" -bind S command-prompt "split-window -v '%%'" -bind v command-prompt "split-window -h '%%'" +bind d detach +bind -n C-\ detach +bind -n C-up resize-pane -U +bind -n C-down resize-pane -D +bind -n C-left resize-pane -L +bind -n C-right resize-pane -R + +bind n next-window +bind C-n next-window +bind p previous-window +bind C-p previous-window +bind s command-prompt "split-window -v '%%'" +bind S command-prompt "split-window -v '%%'" +bind v command-prompt "split-window -h '%%'" bind C-v command-prompt "split-window -h '%%'" bind Enter new-window +bind r command-prompt "new-window '%%'" bind c confirm-before kill-pane bind x confirm-before kill-pane bind ! command-prompt -p Man: "split-window 'man %%'" bind o break-pane -bind k up-pane -bind j down-pane +bind h select-pane -L +bind k select-pane -U +bind j select-pane -D +bind l select-pane -R bind K swap-pane -U bind J swap-pane -D bind i display-message \; display-panes @@ -73,10 +87,10 @@ bind -c -t vi-edit | start-of-line ############################################################################## # Bells -set -g visual-activity on -set -g visual-bell off -set -g bell-action any -setw -g monitor-activity on +set -g visual-activity on +set -g visual-bell off +set -g bell-action any +set -wg monitor-activity off ############################################################################## # Theme @@ -96,11 +110,19 @@ set -g message-bg red set -g message-attr bright # default window title colors -setw -g window-status-fg cyan -setw -g window-status-bg default -setw -g window-status-attr dim +set -wg window-status-fg white +set -wg window-status-bg default +set -wg window-status-attr dim + +set -wg window-status-format '#I #W#F' +set -wg window-status-current-format '#[fg=red,nobold][#[fg=white,bold]#I #W#F#[fg=red,nobold]]' + +set -g pane-border-bg default +set -g pane-border-fg default +set -g pane-active-border-bg default +set -g pane-active-border-fg red # active window title colors -setw -g window-status-current-fg white -setw -g window-status-current-bg default -setw -g window-status-current-attr bright +set -wg window-status-current-fg white +set -wg window-status-current-bg default +set -wg window-status-current-attr bright