-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
85 lines (75 loc) · 4.34 KB
/
tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Load additional tmux configurations
source-file ~/.config/tmux/tmux.reset.conf
# Set terminal options for better color support
set-option -g default-terminal 'screen-256color'
set-option -g terminal-overrides ',xterm-256color:RGB'
# Key binding and window management settings
set -g prefix ^A # Set prefix key to Ctrl-A
set -g base-index 1 # Start indexing windows at 1 instead of 0
set -g detach-on-destroy off # Don't exit tmux when closing a session
set -g escape-time 0 # Set escape time delay to 0
set -g history-limit 1000000 # Increase history size from 2,000 to 1,000,000
set -g renumber-windows on # Renumber windows when any window is closed
set -g set-clipboard on # Use system clipboard
set -g status-position top # Set status bar position to top (macOS style)
set -g default-terminal "${TERM}" # Set default terminal to current TERM value
# Pane and mode settings
setw -g mode-keys vi # Use vi keys in copy mode
set -g pane-active-border-style 'fg=magenta,bg=default' # Active pane border style
set -g pane-border-style 'fg=brightblack,bg=default' # Inactive pane border style
# fzf-url plugin settings
set -g @fzf-url-fzf-options '-p 60%,30% --prompt=" " --border-label=" Open URL "'
set -g @fzf-url-history-limit '2000'
# Plugin configurations
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'fcsonline/tmux-thumbs'
set -g @plugin 'sainnhe/tmux-fzf'
set -g @plugin 'wfxr/tmux-fzf-url'
set -g @plugin 'omerxx/catppuccin-tmux' # Custom fork with meeting script
set -g @plugin 'omerxx/tmux-sessionx'
set -g @plugin 'omerxx/tmux-floax'
# floax plugin settings
set -g @floax-width '80%' # Set floax width to 80%
set -g @floax-height '80%' # Set floax height to 80%
set -g @floax-border-color 'magenta' # Set floax border color to magenta
set -g @floax-text-color 'blue' # Set floax text color to blue
set -g @floax-bind 'p' # Bind floax to key 'p'
set -g @floax-change-path 'false' # Disable change path in floax
# sessionx plugin settings
set -g @sessionx-auto-accept 'off' # Disable auto-accept for sessions
set -g @sessionx-custom-paths '/Users/omerxx/dotfiles' # Set custom paths for sessionx
set -g @sessionx-bind 'o' # Bind sessionx to key 'o'
set -g @sessionx-x-path '~/dotfiles' # Set sessionx path
set -g @sessionx-window-height '85%' # Set sessionx window height to 85%
set -g @sessionx-window-width '75%' # Set sessionx window width to 75%
set -g @sessionx-zoxide-mode 'on' # Enable zoxide mode for sessionx
set -g @sessionx-custom-paths-subdirectories 'false' # Disable custom paths subdirectories
set -g @sessionx-filter-current 'false' # Disable current session filtering
# Continuum and Resurrect settings
set -g @continuum-restore 'on' # Enable automatic restoration of sessions
set -g @resurrect-strategy-nvim 'session' # Set Neovim strategy to session
# Catppuccin theme settings
set -g @catppuccin_window_left_separator ""
set -g @catppuccin_window_right_separator " "
set -g @catppuccin_window_middle_separator " █"
set -g @catppuccin_window_number_position "right"
set -g @catppuccin_window_default_fill "number"
set -g @catppuccin_window_default_text "#W"
set -g @catppuccin_window_current_fill "number"
set -g @catppuccin_window_current_text "#W#{?window_zoomed_flag,(),}"
set -g @catppuccin_status_modules_right "directory meetings date_time"
set -g @catppuccin_status_modules_left "session"
set -g @catppuccin_status_left_separator " "
set -g @catppuccin_status_right_separator " "
set -g @catppuccin_status_right_separator_inverse "no"
set -g @catppuccin_status_fill "icon"
set -g @catppuccin_status_connect_separator "no"
set -g @catppuccin_directory_text "#{b:pane_current_path}"
set -g @catppuccin_meetings_text "#($HOME/.config/tmux/scripts/cal.sh)"
set -g @catppuccin_date_time_text "%H:%M"
# Initialize tmux plugin manager
run '~/.tmux/plugins/tpm/tpm'