Advertisement
metalx1000

tmux config

Jun 7th, 2025
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.01 KB | None | 0 0
  1. # True color settings
  2. set -g default-terminal "$TERM"
  3. set -ag terminal-overrides ",$TERM:Tc"
  4.  
  5. # remap prefix to Control + a
  6. set -g prefix C-a
  7. # bind 'C-a C-a' to type 'C-a'
  8. bind C-a send-prefix
  9. unbind C-b
  10.  
  11. # split panes using | and -
  12. bind \\ split-window -h -c "#{pane_current_path}"
  13. bind - split-window -v -c "#{pane_current_path}"
  14. unbind '"'
  15. unbind %
  16.  
  17. #killall panes except currnet
  18. #bind k kill-pane -a
  19.  
  20. # reload config file (change file location to your the tmux.conf you want to use)
  21. bind r source-file ~/.tmux.conf
  22.  
  23. # grid layout
  24. bind g select-layout tiled
  25. ######################
  26. ### DESIGN CHANGES ###
  27. ######################
  28.  
  29. # panes
  30. set -g pane-border-style fg=black
  31. set -g pane-active-border-style fg=brightred
  32.  
  33. ## Status bar design
  34. # status line
  35. #set -g status-utf8 on
  36. set -g status-justify left
  37. set -g status-bg default
  38. set -g status-fg colour12
  39. set -g status-interval 2
  40.  
  41. # messaging
  42. set -g message-style fg=black,bg=yellow
  43. set -g message-command-style fg=blue,bg=black
  44.  
  45. #window mode
  46. setw -g mode-style bg=colour6,fg=colour0
  47.  
  48. # window status
  49. setw -g window-status-format " #F#I:#W#F "
  50. setw -g window-status-current-format " #F#I:#W#F "
  51. setw -g window-status-format "#[fg=magenta]#[bg=black] #I #[bg=cyan]#[fg=colour8] #W "
  52. setw -g window-status-current-format "#[bg=brightmagenta]#[fg=colour8] #I #[fg=colour8]#[bg=colour14] #W "
  53. setw -g window-status-current-style bg=colour0,fg=colour11
  54. #,attr=dim
  55. setw -g window-status-style bg=green,fg=black
  56.  
  57. # Info on left (I don't have a session display for now)
  58. set -g status-left ''
  59.  
  60. # loud or quiet?
  61. set-option -g visual-activity off
  62. set-option -g visual-bell off
  63. set-option -g visual-silence off
  64. set-window-option -g monitor-activity off
  65. set-option -g bell-action none
  66.  
  67. set -g default-terminal "screen-256color"
  68.  
  69. # The modes {
  70. setw -g clock-mode-colour colour135
  71. #setw -g mode-style attr=bold
  72. setw -g mode-style fg=colour196,bg=colour238
  73. # 12 hour clock
  74. setw -g clock-mode-style 12
  75.  
  76. # }
  77. # The panes {
  78.  
  79. set -g pane-border-style bg=colour235
  80. set -g pane-border-style fg=colour238
  81. set -g pane-active-border-style bg=colour236
  82. set -g pane-active-border-style fg=colour51
  83.  
  84. # }
  85. # The statusbar {
  86.  
  87. set -g status-position bottom
  88. set -g status-style bg=colour234,fg=colour137
  89. set -g status-left ''
  90. #set -g status-right '#([ $(cat /sys/class/power_supply/AC/online) = 0 ] && echo 🔋 || echo 🔌) #(acpi | cut -d\  -f4|tr -d ",") #[fg=colour233,bg=colour241,bold] %m/%d #[fg=colour233,bg=colour245,bold] %I:%M '
  91. set -g status-right '#[fg=colour233,bg=colour241,bold]#(iwgetid -r) #(wifi_ip)  #[fg=colour233,bg=colour250,bold] %m/%d #[fg=colour233,bg=colour245,bold] %I:%M '
  92. #set -g status-right '#[fg=colour233,bg=colour241,bold] %m/%d #[fg=colour233,bg=colour245,bold] %I:%M '
  93. set -g status-right-length 50
  94. set -g status-left-length 20
  95.  
  96. setw -g window-status-current-style fg=colour81,bg=colour238
  97. setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F '
  98.  
  99. setw -g window-status-style fg=colour138,bg=colour235
  100. setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
  101.  
  102. setw -g window-status-bell-style fg=colour255,bg=colour1
  103.  
  104. # }
  105. # The messages {
  106.  
  107. #set -g message-attr bold
  108. set -g message-style fg=colour232,bg=colour166
  109.  
  110. # }
  111.  
  112. bind m run -b /usr/local/bin/tmux2clip
  113.  
  114. #after selecting Ctrl+Space to copy and then paste like normal
  115. bind-key -T copy-mode-vi v send-keys -X begin-selection
  116. bind-key -T copy-mode-vi y send-keys -X copy-selection
  117. bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
  118.  
  119.  
  120. # List of plugins
  121. set -g @plugin 'tmux-plugins/tpm'
  122. set -g @plugin 'tmux-plugins/tmux-sensible'
  123.  
  124. set -g @plugin 'wfxr/tmux-fzf-url'
  125. set -g @plugin 'dreamsofcode-io/catppuccin-tmux'
  126.  
  127.  
  128. # Other examples:
  129. # set -g @plugin 'github_username/plugin_name'
  130. # set -g @plugin '[email protected]/user/plugin'
  131. # set -g @plugin '[email protected]/user/plugin'
  132.  
  133. # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
  134. run -b '~/.tmux/plugins/tpm/tpm'
  135.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement