Advertisement
Guest User

Untitled

a guest
Oct 30th, 2024
132
0
342 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.51 KB | None | 0 0
  1. set -g default-terminal "xterm-256color"
  2. set -ag terminal-overrides "*:Tc"
  3. set -g mouse on
  4. set -s escape-time 0
  5. # set -g editor /usr/bin/nvim
  6.  
  7. # set -g display-panes-time 0
  8.  
  9. # setw -g clock-mode-colour colour1
  10.  
  11. # setw -g mode-style 'fg=colour1 bg=colour18 bold'
  12.  
  13. set -g status-position bottom
  14. set -g status-justify left
  15. set -g status-style "bg=black fg=white"
  16. set -g status-left " #S "
  17. set -g status-left-style "bg=colour173 fg=black"
  18. # set -g status-right '%Y-%m-%d %H:%M '
  19. set -g status-right-style "bg=yellow fg=black"
  20.  
  21. set -g pane-border-lines 'single'
  22. set -g pane-border-style "fg=white"
  23. set -g pane-active-border-style "fg=green"
  24. # set -g pane-border-style 'fg=colour2'
  25. # set -g pane-active-border-style 'fg=colour3'
  26.  
  27. set -g popup-border-style "fg=blue"
  28. set -g popup-border-lines rounded
  29.  
  30. set -g window-status-current-style "bg=blue fg=black bold"
  31. setw -g window-status-current-format ' #I #W #F '
  32. setw -g window-status-format ' #I #[fg=colour7]#W #[fg=colour1]#F '
  33. set -g window-status-last-style "bg=colour234 fg=blue nounderscore"
  34. # set -g window-status-separator "| "
  35. set -g window-status-separator ""
  36.  
  37. # TODO: C-s for prefix
  38. # or C-Space
  39. set -g prefix C-a
  40. bind C-a send-prefix
  41. # set -g prefix2 C-a
  42. # bind C-a send-prefix -2
  43.  
  44. # bind r source-file ~/.config/tmux/tmux.conf \; display "tmux config reloaded"
  45. bind r {
  46.     source-file ~/.config/tmux/tmux.conf
  47.     display "tmux config reloaded"
  48. }
  49.  
  50. # set-option -g status-position top
  51.  
  52. set -g base-index 1
  53. set -g pane-base-index 1
  54. set-window-option -g pane-base-index 1
  55. setw -g automatic-rename on
  56. set-option -g renumber-windows on
  57.  
  58. set-window-option -g mode-keys vi
  59.  
  60. bind-key h select-pane -L
  61. bind-key j select-pane -D
  62. bind-key k select-pane -U
  63. bind-key l select-pane -R
  64.  
  65. bind -n M-Left select-pane -L
  66. bind -n M-Right select-pane -R
  67. bind -n M-Up select-pane -U
  68. bind -n M-Down select-pane -D
  69.  
  70. # copy mode
  71. bind-key -T copy-mode-vi v send-keys -X begin-selection
  72. bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
  73. bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
  74. bind -T copy-mode-vi Escape send -X cancel
  75. bind -T copy-mode-vi H send -X start-of-line
  76. bind -T copy-mode-vi L send -X end-of-line
  77.  
  78. # copy to Wayland clipboard
  79. if -b '[ "$XDG_SESSION_TYPE" = "wayland" ] && command -v wl-copy > /dev/null 2>&1' 'bind y run -b "\"\$TMUX_PROGRAM\" \${TMUX_SOCKET:+-S \"\$TMUX_SOCKET\"} save-buffer - | wl-copy"'
  80.  
  81. bind '"' split-window -v -c "#{pane_current_path}"
  82. bind % split-window -h -c "#{pane_current_path}"
  83.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement