-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
executable file
·128 lines (98 loc) · 3.61 KB
/
Copy path.tmux.conf
File metadata and controls
executable file
·128 lines (98 loc) · 3.61 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
## no detach
set -g detach-on-destroy off
#
## themes
set -g @plugin 'dracula/tmux'
## Image preview YAZI https://yazi-rs.github.io/docs/image-preview/#tmux
set -g allow-passthrough on
set -ga update-environment TERM
set -ga update-environment TERM_PROGRAM
## make bg transparent
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",*:RGB" # For modern tmux (3.2a+)
# OR for older tmux / if ":RGB" doesn't work:
# set -ag terminal-overrides ",*:Tc"
# 3. Ensure the status line, panes, and windows are set to default backgrounds
set -g status-style "bg=default"
set -g pane-border-style "fg=default,bg=default"
set -g pane-border-lines "heavy"
set -g pane-border-indicators "both"
# Active Pane Border (the currently selected pane's entire border)
# fg=magenta will make the active pane clearly stand out
set -g pane-active-border-style "fg=magenta,bg=default"
set -g window-style "fg=default,bg=default"
set -g window-active-style "fg=default,bg=default"
setw -g pane-border-status "top"
## Tmux plugins
set -g @plugin 'joshmedeski/tmux-nerd-font-window-name'
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'vndmp4/tmux-fzf-session-switch'
set -g @continuum-restore 'on'
set -g @continuum-save-interval '60'
## session switcher
set-option -g @fzf-goto-session-only 'true'
set -g @fzf-goto-session 's'
set -g @fzf-goto-win-width 80
set -g @fzf-goto-win-height 40
# set-option -g default-terminal "screen-256color"
# set -g default-terminal "xterm-256color"
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
set-option -g prefix2 C-b
# new windows in current directory
bind c new-window -c "#{pane_current_path}"
# Splitting panes
bind ] split-window -hc '#{pane_current_path}'
bind - split-window -vc '#{pane_current_path}'
unbind '"'
unbind %
# Easy Configuration reload
bind r source-file ~/.tmux.conf
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# mouse interactions
set -g mouse off
# don't rename windows automatically
set-option -g allow-rename off
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# THEME
set-option -g status-style bg='black',fg='white'
#setw -g window-status-current-bg '#808080'
#set-window-option -g window-status-current-fg 'white'
#set-window-option -g window-status-current-attr bold
#### disabling below 2 lines so that theme can work correctly.
# setw -g window-status-current-style bg=black,fg=colour226,bold
# setw -g window-status-style bg=colour246,fg=black,reverse
# set -g status-interval 60
# set -g status-left-length 30
# set -g status-left '#[fg=colour161](#S) '
# set -g status-right '#[fg=colour161]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=white]%H:%M#[default]'
# set -g window-style 'fg=colour252,bg=colour236'
# set -g window-active-style 'fg=colour250,bg=black'
# Resolution for end and home keys not working
bind-key -n Home send Escape "OH"
bind-key -n End send Escape "OF"
#################
#### Dracula Conf
#################
set -g @dracula-plugins "continuum cpu-usage ram-usage battery time"
# set -g @dracula-plugins "cpu-usage ram-usage battery time"
set -g @dracula-show-powerline false
set -g @dracula-show-left-icon session
set -g @dracula-time-format "%d %b %R"
set -g @dracula-border-contrast true
#################
# Initialize plugin manager..
run '~/.tmux/plugins/tpm/tpm'