-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
86 lines (69 loc) · 2.57 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
86
#
# | | .tmux.conf - tmux config
# ~|~| |(~|/~\ /~~|/~~|| ||/~\/~~|\ /
# | \_/|_)| |\__|\__| \_/|| \__| \/
# \__| www.tushgaurav.in
# Easier configration reload
bind-key r source-file ~/.config/tmux/tmux.conf \; display-message "tmux.conf reloaded."
# Set true color
set-option -sa terminal-overrides ",xterm*:Tc"
# Catppuccin theme
set -g @catppuccin_flavour 'frappe'
set -g @catppuccin_window_left_separator "█"
set -g @catppuccin_window_right_separator "█ "
set -g @catppuccin_window_number_position "right"
set -g @catppuccin_window_middle_separator " █"
set -g @catppuccin_window_default_fill "number"
set -g @catppuccin_window_current_fill "number"
set -g @catppuccin_window_current_text "#{pane_current_path}"
set -g @catppuccin_status_modules_right "application session date_time"
set -g @catppuccin_status_left_separator ""
set -g @catppuccin_status_right_separator " "
set -g @catppuccin_status_right_separator_inverse "yes"
set -g @catppuccin_status_fill "all"
set -g @catppuccin_status_connect_separator "no"
# config for host module
set -g @catppuccin_host_text "#(whoami)@#h"
# config for date_time module
set -g @catppuccin_date_time_text "%Y-%m-%d | %H:%M:%S"
# Start windows and panes at 1 not 0
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# Mouse Support
set -g mouse on
# Set prefix
unbind C-b
set -g prefix C-Space
unbind C-j
set -g prefix2 C-j
bind C-Space send-prefix
# Shift Alt vim keys to switch windows
bind -n M-H previous-window
bind -n M-L next-window
# Set vi-mode
set-window-option -g mode-keys vi
# Keybindings
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
# Status Bar
#set -g status-justify centre
#set -g status-bg black
#set -g status-fg colour35
#set -g status-interval 60
#set -g status-left-length 50
#set -g status-left "#[bg=colour32]💀#[fg=colour234,bold] #H#[bg=colour34]#[bg=colour35,nobold]#[fg=colour234] [#S] $tmux_target_lower"
#set -g status-right '#[bg=colour35] 🕔 #[fg=colour234,bold]%H:%M '
# tmux-sidebar config
set -g @sidebar-tree 's'
set -g @sidebar-tree-position 'right'
set -g @sidebar-tree-command 'tree -C'
set -g @plugin 'catppuccin/tmux'
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-sidebar'
set -g @plugin 'christoomey/vim-tmux-navigator'
run '~/.tmux/plugins/tpm/tpm'