Advertisement
Guest User

Untitled

a guest
May 31st, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.89 KB | None | 0 0
  1. # C-b is not acceptable -- Vim uses it
  2. set-option -g prefix C-a
  3. bind-key C-a last-window
  4.  
  5. # Start numbering at 1
  6. set -g base-index 1
  7.  
  8. # Allows for faster key repetition
  9. set -s escape-time 0
  10.  
  11. # Rather than constraining window size to the maximum size of any client
  12. # connected to the *session*, constrain window size to the maximum size of any
  13. # client connected to *that window*. Much more reasonable.
  14. setw -g aggressive-resize on
  15.  
  16. # Allows us to use C-a a <command> to send commands to a TMUX session inside
  17. # another TMUX session
  18. bind-key a send-prefix
  19.  
  20. # Vi copypaste mode
  21. set-window-option -g mode-keys vi
  22. bind-key -t vi-copy 'v' begin-selection
  23. bind-key -t vi-copy 'y' copy-selection
  24.  
  25. # hjkl pane traversal
  26. bind h select-pane -L
  27. bind j select-pane -D
  28. bind k select-pane -U
  29. bind l select-pane -R
  30.  
  31. # set to main-horizontal, 60% height for main pane
  32. bind m set-window-option main-pane-height 60\; select-layout main-horizontal
  33.  
  34. bind-key C command-prompt -p "Name of new window: " "new-window -n '%%'"
  35.  
  36. # reload config
  37. bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
  38.  
  39. # auto window rename
  40. set-window-option -g automatic-rename
  41.  
  42. # color
  43. #set -g default-terminal "screen-256color"
  44.  
  45. # split panes using | and -
  46. bind | split-window -h
  47. bind - split-window -v
  48. unbind '"'
  49. unbind %
  50.  
  51. # switch panes using Alt-arrow without prefix
  52. bind -n M-Left select-pane -L
  53. bind -n M-Right select-pane -R
  54. bind -n M-Up select-pane -U
  55. bind -n M-Down select-pane -D
  56.  
  57. set -g mouse on
  58.  
  59. ######################
  60. ### DESIGN CHANGES ###
  61. ######################
  62.  
  63. # panes
  64. set -g pane-border-fg black
  65. set -g pane-active-border-fg brightred
  66.  
  67. ## Status bar design
  68. # status line
  69. set -g status-justify left
  70. set -g status-bg default
  71. set -g status-fg colour12
  72. set -g status-interval 2
  73.  
  74. # messaging
  75. set -g message-fg black
  76. set -g message-bg yellow
  77. set -g message-command-fg blue
  78. set -g message-command-bg black
  79.  
  80. #window mode
  81. setw -g mode-bg colour6
  82. setw -g mode-fg colour0
  83.  
  84. # window status
  85. setw -g window-status-format " #F#I:#W#F "
  86. setw -g window-status-current-format " #F#I:#W#F "
  87. setw -g window-status-format "#[fg=magenta]#[bg=black] #I #[bg=cyan]#[fg=colour8] #W "
  88. setw -g window-status-current-format "#[bg=brightmagenta]#[fg=colour8] #I #[fg=colour8]#[bg=colour14] #W "
  89. setw -g window-status-current-bg colour0
  90. setw -g window-status-current-fg colour11
  91. setw -g window-status-current-attr dim
  92. setw -g window-status-bg green
  93. setw -g window-status-fg black
  94. setw -g window-status-attr reverse
  95.  
  96. # Info on left (I don't have a session display for now)
  97. set -g status-left ''
  98.  
  99. # loud or quiet?
  100. set-option -g visual-activity off
  101. set-option -g visual-bell off
  102. set-option -g visual-silence off
  103. set-window-option -g monitor-activity off
  104. set-option -g bell-action none
  105.  
  106. # The modes {
  107. setw -g clock-mode-colour colour135
  108. setw -g mode-attr bold
  109. setw -g mode-fg colour196
  110. setw -g mode-bg colour238
  111.  
  112. # }
  113. # The panes {
  114.  
  115. set -g pane-border-bg colour235
  116. set -g pane-border-fg colour238
  117. set -g pane-active-border-bg colour236
  118. set -g pane-active-border-fg colour51
  119.  
  120. # }
  121. # The statusbar {
  122.  
  123. set -g status-position bottom
  124. set -g status-bg colour234
  125. set -g status-fg colour137
  126. set -g status-attr dim
  127. set -g status-left ''
  128. set -g status-right '#[fg=colour233,bg=colour241,bold] %d/%m #[fg=colour233,bg=colour245,bold] %H:%M:%S '
  129. set -g status-right-length 50
  130. set -g status-left-length 20
  131.  
  132. setw -g window-status-current-fg colour81
  133. setw -g window-status-current-bg colour238
  134. setw -g window-status-current-attr bold
  135. setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F '
  136.  
  137. setw -g window-status-fg colour138
  138. setw -g window-status-bg colour235
  139. setw -g window-status-attr none
  140. setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
  141.  
  142. setw -g window-status-bell-attr bold
  143. setw -g window-status-bell-fg colour255
  144. setw -g window-status-bell-bg colour1
  145.  
  146. # }
  147. # The messages {
  148.  
  149. set -g message-attr bold
  150. set -g message-fg colour232
  151. set -g message-bg colour166
  152.  
  153. # }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement