/
/
/
My dotfile repo. It sets aliases and installs generic applications for my user.
1bind -n M-h select-pane -L
2bind -n M-l select-pane -R
3bind -n M-k select-pane -U
4bind -n M-j select-pane -D
5
6bind -n M-i next-window
7bind -n M-o previous-window
8
9bind r command-prompt "rename-window %%"
10# set -g automatic-rename-format "#{b:pane_current_path}"
11set -g automatic-rename-format "#{?pane_current_command,#{pane_current_command},#{b:pane_current_path}}"
12
13set -g default-command $SHELL
14
15set -g base-index 1 # start indexing windows at 1 instead of 0
16set -g renumber-windows on # renumber all windows when any window is closed
17set -g status-position top # macOS / darwin style
18
19bind m split-window -h \; split-window -v \; select-pane -L \; split-window -v \; select-pane -U
20
21set -g history-file ~/.tmux_history
22
23set -g status-interval 2
24
25# bind m run "cut -c3- '#{TMUX_CONF}' | sh -s _toggle_mouse"
26
27set -g history-limit 5000
28
29# bind -n M-x setw synchronize-panes on
30# bind -n M-c setw synchronize-panes off
31bind-key X set-window-option synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}"
32
33set-environment -g PATH "/usr/local/bin:/bin:/usr/bin"
34
35set-option -s set-clipboard off
36
37set -g mouse on
38setw -g mode-keys vi
39bind -T copy-mode-vi v send -X begin-selection # visual (charwise)
40bind -T copy-mode-vi V send -X select-line # Visual-Line
41bind -T copy-mode-vi C-v send -X begin-selection \; send -X rectangle-toggle
42
43bind -T copy-mode-vi y send -X copy-selection-and-cancel
44bind -T copy-mode-vi y send -X copy-pipe-and-cancel "xclip -selection clipboard -in"
45
46set -g @plugin 'tmux-plugins/tpm'
47
48#set inactive/active window styles
49set -g window-style 'fg=colour250,bg=colour234'
50set -g window-active-style 'fg=colour250,bg=black'
51
52set -g @plugin 'tmux-plugins/tmux-pain-control'
53set -g @plugin 'tmux-plugins/tmux-sensible'
54set -g @plugin 'tmux-plugins/tmux-logging'
55set -g @plugin 'omerxx/tmux-sessionx'
56set -g @plugin 'tmux-plugins/tmux-yank'
57set -g @plugin 'tmux-plugins/tmux-copycat'
58
59set -g @plugin 'catppuccin/tmux'
60# set -g @plugin 'dreknix/tmux-primary-ip'
61set -g @plugin 'yschulz/tmux-primary-ip#feature/support-vpn'
62
63set -g @catppuccin_window_current_text "#W#{?window_zoomed_flag,(î®),}"
64set -g @catppuccin_window_status_style "rounded"
65
66set-environment -gF TMUX_PLUGIN_MANAGER_PATH '#{HOME}/.tmux/plugins'
67run '#{TMUX_PLUGIN_MANAGER_PATH}/tmux/catppuccin.tmux'
68source -F '#{d:current_file}/custom_modules/primary_ip.conf'
69
70# Make the status line pretty and add some modules
71set -g status-right-length 100
72set -g status-left-length 100
73set -g status-left ""
74set -g status-right "#{E:@catppuccin_status_application}"
75set -ag status-right "#{E:@catppuccin_status_session}"
76set -ag status-right "#{E:@catppuccin_status_host}"
77set -agF status-right "#{E:@catppuccin_status_primary_ip}"
78
79
80# set -g @plugin 'nhdaly/tmux-better-mouse-mode'
81
82set -g @yank_selection 'clipboard'
83set -g @yank_action 'copy-pipe-and-cancel'
84
85set -g @custom_copy_command 'xclip -selection clipboard -in'
86
87
88run '~/.tmux/plugins/tpm/tpm'
89
90
91
92