tmux.conf 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. set -g mouse
  2. set -g default-terminal "xterm-ghostty"
  3. set-option -ga terminal-overrides ",xterm-256color:Tc"
  4. # bind P paste-buffer
  5. bind-key -T copy-mode-vi v send-keys -X begin-selection
  6. bind-key -T copy-mode-vi V send-keys -X rectangle-toggle
  7. unbind -T copy-mode-vi Enter
  8. bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'wl-copy'
  9. bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel 'wl-copy'
  10. bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'wl-copy'
  11. unbind -T copy-mode MouseDragEnd1Pane
  12. # bind -Tcopy-mode C-w send -X copy-pipe-and-cancel 'xclip -selection clipboard'
  13. # bind -Tcopy-mode M-w send -X copy-pipe-and-cancel 'xclip -selection clipboard'
  14. # bind -Tcopy-mode MouseDragEnd1Pane send -X copy-pipe-and-cancel 'xclip -selection clipboard'
  15. # unbind -T copy-mode MouseDragEnd1Pane
  16. # List of plugins
  17. set -g @plugin 'tmux-plugins/tpm'
  18. set -g @plugin 'tmux-plugins/tmux-yank'
  19. set -g @plugin 'tmux-plugins/tmux-sensible'
  20. set -g @plugin 'christoomey/vim-tmux-navigator'
  21. # set -g @plugin "janoamaral/tokyo-night-tmux"
  22. set -g @tokyo-night-tmux_time_format 12H
  23. set -g @tokyo-night-tmux_show_battery_widget 1
  24. set -g @tokyo-night-tmux_battery_name "BAT0"
  25. set -g @tokyo-night-tmux_battery_low_threshold 21 # default
  26. # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
  27. run '~/.tmux/plugins/tpm/tpm'