.tmux.conf (3865B) - raw
1 set -g prefix C-a 2 setw -g mode-keys vi 3 4 # split panes using | and - 5 bind | split-window -h 6 bind = split-window -v 7 unbind '"' 8 unbind % 9 # reload config file (change file location to your the tmux.conf you want to use) 10 bind r source-file ~/.tmux.conf 11 # switch panes using Alt-arrow without prefix 12 bind -n M-Left select-pane -L 13 bind -n M-Right select-pane -R 14 bind -n M-Up select-pane -U 15 bind -n M-Down select-pane -D 16 # don't rename windows automatically 17 set-option -g allow-rename off 18 19 # escape-time 20 set -sg escape-time 0 21 22 # Shell naming 23 set-option -g set-titles on 24 set-option -g set-titles-string "dropdown_#S" 25 26 # move around panes with hjkl, as one would in vim after pressing ctrl-w 27 bind h select-pane -L 28 bind j select-pane -D 29 bind k select-pane -U 30 bind l select-pane -R 31 32 # swap pane 33 bind-key -n C-S-Left swap-window -t -1 34 bind-key -n C-S-Right swap-window -t +1 35 36 # resize panes like vim 37 # feel free to change the "1" to however many lines you want to resize by, only 38 # one at a time can be slow 39 bind < resize-pane -L 10 40 bind > resize-pane -R 10 41 bind - resize-pane -D 10 42 bind + resize-pane -U 10 43 44 # sync panes 45 bind b setw synchronize-panes\; display 'Synchronize-panes' 46 47 # vi-style controls for copy mode 48 setw -g mode-keys vi 49 50 # force a reload of the config file 51 unbind r 52 bind r source-file ~/.tmux.conf\; display "Reloaded!" 53 54 # main vertical layout settings 55 bind M-6 set-window-option main-pane-width '165'\; select-layout main-vertical 56 57 # set window and pane index to 1 (0 by default) 58 set-option -g base-index 1 59 setw -g pane-base-index 1 60 61 # set -g renumber-windows on 62 63 # unicode support 64 #setw -g utf8 on 65 #set -g status-utf8 on 66 67 # listen to alerts from all windows 68 set -g bell-action any 69 70 # auto rename window 71 set-option -g allow-rename off 72 73 set-option history-file ~/.tmux/.tmux_history 74 75 #.......... 76 # Status line - http://dotshare.it/dots/963/ 77 # Colours, 78 # for i in {0..255} ; do 79 # printf "\x1b[38;5;${i}mcolour${i}\n" 80 # done 81 #.......... 82 set -g status-left '' 83 set -g status-justify right 84 set -g status-position bottom 85 # set -g status-right '#[fg=colour176,bold,bg=colour236,bold] %B #[fg=colour146,bold,bg=colour236,bold]%d, #[fg=colour173,bold,bg=colour236,bold]%Y#[fg=default] #[fg=colour234,bold,bg=colour12,bold] %R ' 86 set -g status-right '' 87 set -g status-right-length 100 88 set -g status-bg default 89 90 # Dusk and black 91 # setw -g window-status-format '#[fg=colour180,bold,bg=colour236,bold] #I #[fg=colour236,bold,bg=colour180,bold] #W ' 92 # setw -g window-status-current-format '#[fg=colour236,bold,bg=colour180,bold] #I #[fg=colour180,bold,bg=colour236,bold] #W ' 93 94 # Black and white 95 setw -g window-status-format '#[fg=white,bg=default]#{?window_zoomed_flag,(, }#I #W#{?window_zoomed_flag,), }' 96 # setw -g window-status-current-format '#[fg=colour232,bold,bg=white,bold] #I #W ' 97 #setw -g window-status-current-format '#{?window_zoomed_flag,#[bg=white]#[fg=red](,}#[fg=colour232,bold,bg=white,bold]#I #W#{?window_zoomed_flag,#[fg=red]),}' 98 setw -g window-status-current-format '#[fg=colour232,bold,bg=white]#{?window_zoomed_flag,(, }#I #W#{?window_zoomed_flag,), }' 99 100 # Bold Purple and black 101 # setw -g window-status-format '#[fg=colour213,bg=colour236] #I #[fg=colour213,bg=colour236] #W ' 102 # setw -g window-status-current-format '#[fg=colour236,bold,bg=colour213,bold] #I #[fg=colour213,bold,bg=colour236,bold] #W ' 103 104 # Chark Purple and black 105 # setw -g window-status-format '#[fg=colour176,bg=colour236] #I #[fg=colour176,bg=colour236] #W ' 106 # setw -g window-status-current-format '#[fg=colour236,bold,bg=colour176,bold] #I #[fg=colour176,bold,bg=colour236,bold] #W ' 107 108 setw -g window-status-format '#[fg=colour1,bg=colour1] #I #[fg=colour253,bg=colour52] #W ' 109 setw -g window-status-current-format '#[fg=colour30,bold,bg=colour253,bold] #I #[fg=colour253,bold,bg=colour30,bold] #W ' 110 #.......... 111 # Other good status line 112 # 1. http://dotshare.it/dots/586/ 113 #..........