-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_tmux.conf.tmpl
81 lines (71 loc) · 2.79 KB
/
dot_tmux.conf.tmpl
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
# Prefix
## Set PREFIX to <Ctrl>-f on home row
set-option -g prefix C-f
# Pane management
bind-key o last-pane
## Pane movement with vim/i3 keybindings
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind-key H swap-pane -d -t left
bind-key J swap-pane -d -t bottom
bind-key K swap-pane -d -t top
bind-key L swap-pane -d -t right
unbind R
bind R source-file ~/.tmux.conf
# Copy mode
bind-key -T copy-mode-vi y send-keys -X copy-pipe "xclip -i -selection clipboard"
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -i -selection clipboard"
# Per Nvim's suggestion
#
# - Put this in your ~/.tmux.conf and replace XXX by your $TERM outside of tmux:
# set-option -sa terminal-overrides ',XXX:RGB'
# - For older tmux versions use this instead:
# set-option -ga terminal-overrides ',XXX:Tc'
# - (tmux 1.9+ only) Set `focus-events` in ~/.tmux.conf:
# set-option -g focus-events on
set-option -sa terminal-overrides ',alacritty:RGB'
set-option -g default-terminal "screen-256color"
set-option -g focus-events on
#set -g default-terminal "screen-256color"
#set-option -ga terminal-overrides ",xterm-256color:Tc"
{{- if eq .chezmoi.fqdnHostname "vighnesh-t480" }}
set-option -g default-shell /usr/bin/fish
{{- end }}
{{- if regexMatch "(a\\d+$)|(as\\d+$)|(firesim\\d+$)|(amd\\d+$)" .chezmoi.fqdnHostname }}
set-option -g default-shell /nscratch/vighneshiyer/sysroot/bin/fish
{{- end }}
# Status bar
## Start window indexing from 1
set -g base-index 1
set -g status-fg terminal
set -g status-bg default
set -g status-style bg=default
set -g status-justify centre
set -g status-left-length 40
set -g status-left ' #[bold]#h#[none] #S '
set -g status-right '%m-%d #[bold] %H:%M #[none]'
setw -g window-status-format '#[none] #I #[none]#W#{?window_flags,#{window_flags}, } ' # bg=colour32 #F
# setw -g window-status-current-format '#[bold,reverse] #I #[none,reverse]#W#{?window_flags,#{window_flags}, } ' # bg=colour15/colour231 fg=colour232
# setw -g window-status-current-format '#[reverse] #I #[reverse]#W#{?window_flags,#{window_flags}, } ' # bg=colour15/colour231 fg=colour232
setw -g window-status-current-format '#[reverse] #I #W#{?window_flags,#{window_flags}, } ' # bg=colour15/colour231 fg=colour232
# Border colors
# Light background
# set -g pane-active-border-style "fg=black"
# set -g pane-border-style "fg=colour255"
# Dark background
set -g pane-active-border-style "fg=white"
set -g pane-border-style "fg=brightblack"
# Usability
set-option -g set-titles on
set-option -g set-titles-string "[#H:#S] #W"
set-option -g history-limit 100000
## Use vim keybindings
set-window-option -g mode-keys vi
setw -g mode-keys vi
## Tmux shouldn't wait when PREFIX is hit for a command
set -s escape-time 0
# Enable mouse support
set-option -g mouse on
setw -g aggressive-resize on