.tmux.conf 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. # Styling
  22. set-option -g status-bg black
  23. set-option -g status-fg white
  24. set-option -g pane-active-border-style fg=grey
  25. set-option -g pane-border-style fg=grey
  26. # Left components
  27. set-option -g status-left-length 20
  28. # set-option -g status-left "#[bg=black, fg=grey] #(hostname -s):#{session_name}  "
  29. set-option -g status-left "#[bg=black] "
  30. # Right components
  31. set-option -g status-right-length 50
  32. set-option -g status-right "#[fg=grey] %Y-%m-%d %H:%M "
  33. #set-option -g status-right "\
  34. ##[fg=grey] \
  35. # #(ip -4 -o address show dev wlp3s0 | awk '{print $4}') \
  36. # %Y-%m-%d %H:%M "
  37. # Window list style
  38. set-window-option -g window-status-format "#[fg=grey]#I: #W "
  39. set-window-option -g window-status-current-format "#[fg=blue]#I: #W #[fg=grey]"