.tmux.conf 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. ####################
  2. ##### COLOURS ######
  3. ####################
  4. BACKGROUND=colour8
  5. # tmux-256 color makes my dir colors work, but breaks the S-Tab sequence I use for UltiSnips...
  6. # manually setting "export term=xterm-256color" within tmux, before launching
  7. # vim, fixes this... extremely hackish
  8. set -g default-terminal "xterm-256color"
  9. # set -g default-terminal "xterm"
  10. # set -g default-terminal "screen-256color"
  11. # set -g default-terminal "tmux-256color"
  12. # enable true color support (this took forever to find)
  13. # https://deductivelabs.com/blog/tech/using-true-color-vim-tmux/
  14. set-option -ga terminal-overrides ",xterm-256color:Tc"
  15. # set a larger scrollback buffer size
  16. set-option -g history-limit 10000
  17. # default statusbar colors
  18. set-option -g status-bg default #note the invisible ink, colour15
  19. set-option -g status-fg yellow
  20. # set window title list colors
  21. set-window-option -g window-status-style fg=brightblue,bg=$BACKGROUND #note the invisible ink, colour15
  22. #set-window-option -g window-status-style fg=brightblue #note the invisible ink, colour15
  23. # active window title colors
  24. set-window-option -g window-status-current-style fg=brightred,bg=$BACKGROUND
  25. #set-window-option -g window-status-current-style fg=brightred
  26. # active window colors; these are the basic text/background colours,
  27. # but are only used when multiple panes are open
  28. # old format
  29. # set -g window-active-style "bg=colour0"
  30. # set -g window-style "bg=colour8"
  31. # window indicators w/ ctrl-q
  32. # old format
  33. # set-window-option -g window-status-fg brightblue
  34. # set-window-option -g window-status-bg colour0
  35. # window indicators w/ ctrl-q when splits
  36. # old format
  37. #set-window-option -g window-status-current-fg brightred
  38. # set-window-option -g window-status-current-bg colour0
  39. # new format
  40. set-window-option -g window-status-current-style fg=brightred
  41. #set-window-option -g window-status-current-style bg=colour0
  42. # pane border
  43. # old format
  44. #set-option -g pane-border-fg colour0
  45. #set-option -g pane-active-border-fg yellow
  46. # new format
  47. set-option -g pane-active-border-style fg=colour0
  48. # message text
  49. # old format
  50. #set-option -g message-bg colour0
  51. #set-option -g message-fg brightred
  52. # new format
  53. set-option -g message-style bg=colour0
  54. set-option -g message-style fg=brightred
  55. # pane number display
  56. set-option -g display-panes-active-colour blue
  57. set-option -g display-panes-colour brightred
  58. # clock
  59. set-window-option -g clock-mode-colour yellow
  60. # don't auto-rename windows
  61. set-option -g allow-rename off
  62. ####################
  63. # start new windows at the current path
  64. bind c new-window -c "#{pane_current_path}"
  65. bind '"' split-window -c "#{pane_current_path}"
  66. bind s split-window -c "#{pane_current_path}"
  67. bind % split-window -h -c "#{pane_current_path}"
  68. bind v split-window -h -c "#{pane_current_path}"
  69. # resize panes
  70. bind j resize-pane -D 5
  71. bind k resize-pane -U 5
  72. bind h resize-pane -L 5
  73. bind l resize-pane -R 5
  74. # Start windows and panes at 1, not 0
  75. set -g base-index 1
  76. setw -g pane-base-index 1
  77. # increase status bar left element; was too narrow
  78. set -g status-left-length 20
  79. # set -g status-right-length 50
  80. set -g status-right " %H:%M %d-%b#(acpi | cut -d ',' -f 2)"
  81. # use S/V to join panes interactively
  82. bind-key S choose-window 'join-pane -v -s "%%"'
  83. bind-key V choose-window 'join-pane -h -s "%%"'
  84. # remap prefix
  85. unbind C-b
  86. set-option -g prefix C-Space
  87. #bind-key 125 send-prefix