.tmux.conf 1.5 KB

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