-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
120 lines (86 loc) · 2.85 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
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
unbind C-b
set -g prefix C-space
bind C-space send-prefix
bind | split-window -h -c "#{pane_current_path}"
bind v split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind h split-window -v -c "#{pane_current_path}"
unbind '"'
unbind %
bind c new-window -c "#{pane_current_path}"
bind R source-file ~/.tmux.conf
bind W kill-window
bind C-F4 kill-server
bind F4 kill-session
bind x kill-pane
bind j join-pane
# shorten command delay
set -sg escape-time 1
set -g allow-rename on
unbind n
bind n new-window -c "#{pane_current_path}" 'nvchad'
unbind l
bind l new-window -c "#{pane_current_path}" "links"
bind -n S-M-Left previous-window
bind -n S-M-Right next-window
# Use Alt-arrow keys without prefix key to switch panes
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
# # enable vi mode keys
set-window-option -g mode-keys vi
set-option -g focus-events on
set -g mouse on
# # set default terminal mode to 256 colors
set-option -g default-terminal "screen-256color"
set -g default-terminal "xterm-256color"
# set -ga terminal-overrides ",xterm-256color:Tc"
# # present a menu of URLs to open from the visible pane. sweet.
# bind u capture-pane \;\
# save-buffer /tmp/tmux-buffer \;\
# split-window -l 10 "urlview /tmp/tmux-buffer"
set -g base-index 1
setw -g pane-base-index 1
bind r command-prompt -I "#W" "rename-window -- '%%'"
unbind ,
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xsel --clipboard"
# ######################
# ### DESIGN CHANGES ###
# ######################
# dynamic transparency
bind -r "M-+" run-shell "term-transparent.sh +"
bind -r "M--" run-shell "term-transparent.sh -"
# # loud or quiet?
# set -g visual-activity off
# set -g visual-bell off
# set -g visual-silence off
# setw -g monitor-activity off
# set -g bell-action none
# # modes
setw -g clock-mode-colour colour1
setw -g mode-style 'fg=colour0 bg=colour1 bold'
# # panes
set -g pane-border-style 'fg=colour1'
set -g pane-active-border-style 'fg=colour3'
# # statusbar
set -g status-position bottom
set -g status-justify left
set -g status-style 'fg=green'
set -g status-left ''
set -g status-right '%Y-%m-%d %H:%M '
set -g status-right-length 50
set -g status-left-length 10
setw -g window-status-current-style 'fg=colour0 bg=green bold'
setw -g window-status-current-format ' #I #W #F '
setw -g window-status-style 'fg=colour1 dim'
setw -g window-status-format ' #I #[fg=colour7]#W #[fg=colour1]#F '
setw -g window-status-bell-style 'fg=colour2 bg=colour1 bold'
# # messages
set -g message-style 'fg=colour2 bg=colour0 bold'
# pane number display
set-option -g display-panes-active-colour green
set-option -g display-panes-colour green
#set -g default-command /usr/bin/fish
#set -g default-shell /usr/bin/fish