.tmux.conf 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. set -g default-terminal "xterm-256color"
  2. set -g display-panes-time 5000
  3. set -s set-clipboard off
  4. set -g history-limit 10000
  5. # Set vi key binding, and add the standard v and y
  6. setw -g mode-keys vi
  7. bind v copy-mode
  8. bind -T copy-mode-vi v send-keys -X begin-selection
  9. bind -T copy-mode-vi y send -X copy-pipe-and-cancel 'xclip -i -selection clipboard'
  10. # Unbind enter to copy, use y like normal people
  11. unbind -T copy-mode-vi Enter
  12. bind '"' split-window -c "#{pane_current_path}"
  13. bind % split-window -h -c "#{pane_current_path}"
  14. bind C new-window -c "#{pane_current_path}"
  15. bind r source-file ~/.tmux.conf
  16. # Vim keys for navigation between panes
  17. bind h select-pane -L
  18. bind j select-pane -D
  19. bind k select-pane -U
  20. bind l select-pane -R
  21. bind -r C-h resize-pane -L 1
  22. bind -r C-j resize-pane -D 1
  23. bind -r C-k resize-pane -U 1
  24. bind -r C-l resize-pane -R 1
  25. # Styling
  26. set-option -g status-bg black
  27. set-option -g status-fg white
  28. set-option -g mode-style "bg=blue, fg=black"
  29. set-option -g message-style "bg=blue, fg=black"
  30. set-option -g message-command-style "bg=blue, fg=black"
  31. set-option -g pane-active-border-style fg=grey
  32. set-option -g pane-border-style fg=grey
  33. set-option -g pane-active-border-style fg=white
  34. set-option -g window-status-separator "#[fg=grey] | "
  35. # set-option -g window-status-separator "#[fg=grey]  "
  36. # Left components
  37. set-option -g status-left-length 20
  38. # set-option -g status-left "#[bg=black, fg=grey] #(hostname -s):#{session_name}  "
  39. set-option -g status-left "#[bg=black] "
  40. # Right components
  41. set-option -g status-right-length 50
  42. set-option -g status-right "#[fg=grey] %Y-%m-%d %H:%M "
  43. #set-option -g status-right "\
  44. ##[fg=grey] \
  45. # #(ip -4 -o address show dev wlp3s0 | awk '{print $4}') \
  46. # %Y-%m-%d %H:%M "
  47. # Window list style
  48. set-window-option -g window-status-format "#[fg=grey]#I: #W"
  49. set-window-option -g window-status-current-format "#[fg=blue]#I: #W"
  50. set-window-option -g window-status-activity-style "bg=black, fg=grey, italics"
  51. set-window-option -g window-status-bell-style "bg=black, fg=grey, italics"