Linux install and configuration management utilities
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.2KB

  1. # Use fish
  2. set-option -g default-shell /bin/fish
  3. # Index windows and panes starting at 1
  4. set -g base-index 1
  5. setw -g pane-base-index 1
  6. # Sane mouse behavior
  7. set -g mouse on
  8. # Don't rename windows unless I tell it
  9. set-option -g allow-rename off
  10. # Quiet down
  11. set -g visual-activity off
  12. set -g visual-bell off
  13. set -g visual-silence off
  14. setw -g monitor-activity off
  15. set -g bell-action none
  16. # Remap prefix key
  17. unbind C-b
  18. set-option -g prefix C-s
  19. bind-key C-s send-prefix
  20. # Config reload
  21. bind r source-file ~/.config/tmux/tmux.conf
  22. # Pane switching
  23. bind h select-pane -L
  24. bind j select-pane -D
  25. bind k select-pane -U
  26. bind l select-pane -R
  27. # Splits
  28. unbind '"'
  29. unbind %
  30. bind = split-window -h
  31. bind - split-window -v
  32. # Use xclip for modifying the clipboard instead of escape sequences
  33. #set-option -s set-clipboard off
  34. #bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -se c -i"
  35. # Style
  36. set-option -g clock-mode-colour '#57557f'
  37. set-option -g message-command-style 'bg=#262626,fg=#b2b2b2'
  38. set-option -g message-style 'bg=#262626,fg=#b2b2b2'
  39. set-option -g mode-style 'bg=#444444,fg=#b2b2b2'
  40. set-option -g pane-border-style 'fg=#111111'
  41. set-option -g pane-active-border-style 'fg=#111111'
  42. set-option -g status-left ' #S '
  43. set-option -g status-left-style 'bg=#fdab08,fg=#121212'
  44. set-option -g status-right ' #[bg=#57557f] %Y/%m/%d %a %H:%M '
  45. set-option -g status-right-style 'bg=#121212,fg=#b2b2b2'
  46. set-option -g status-style 'bg=#121212,fg=#b2b2b2'
  47. set-option -g window-status-activity-style 'bg=#121212,fg=#d75fd7'
  48. set-option -g window-status-current-format ' #I#F| #W '
  49. set-option -g window-status-current-style 'bg=#57557f,fg=#b2b2b2'
  50. set-option -g window-status-format '#[fg=#585858] #I |#[fg=default] #W '
  51. set-option -g window-status-separator ''
  52. set-option -g window-status-style 'bg=#121212,fg=#b2b2b2'
  53. # Plugins
  54. set -g @plugin 'tmux-plugins/tpm'
  55. set -g @plugin 'tmux-plugins/tmux-sensible'
  56. set -g @plugin 'tmux-plugins/tmux-resurrect'
  57. set -g @resurrect-capture-pane-contents 'on'
  58. set -g @plugin 'tmux-plugins/tmux-continuum'
  59. set -g @continuum-restore 'on'
  60. set -g @plugin 'tmux-plugins/tmux-yank'
  61. set -g @yank_selection 'clipboard'
  62. set -g @yank_selection_mouse 'clipboard'
  63. run '~/.config/tmux/plugins/tpm/tpm'