-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
92 lines (71 loc) · 2.59 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
# set the command prefix to `
set -g prefix "`"
unbind C-b
bind "`" send-prefix
# listen to alerts from all windows
set -g bell-action any
set -g default-shell $SHELL
set -g default-command $SHELL
# start window indexing at 1 (not 0)
set -g base-index 1
set -g renumber-windows on
# don't rename windows automatically
set -g allow-rename off
# ctrl+left/right cycles thru windows
bind -n C-right next
bind -n C-left prev
# more straightforward bindings to split windows
unbind %
bind | split-window -h
unbind '"'
bind - split-window -v
# quickly cycle through window panes
bind o select-pane -t :.+
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-p select-pane -U
bind -n M-Down select-pane -D
# Terminal emulator window title
set -g set-titles on
set -g set-titles-string '#S:#I.#P #W'
set -g status-position top # put status bar at top
set -g status-style 'bg=#1e1e2e'
set -g status-interval 3 # update the status bar every 3 seconds
set -g status-left "#[fg=blue,bold,bg=#1e1e2e] #S \@ #H "
set -g status-right "#[fg=#b4befe,bold,bg=#1e1e2e]%a %Y-%m-%d %l:%M %p"
# set -ga status-right "#($HOME/.config/tmux/scripts/cal.sh)"
set -g status-justify left
set -g status-left-length 200 # increase length (from 10)
set -g status-right-length 200 # increase length (from 10)
# Notifying if other windows has activities
setw -g monitor-activity on
set -g visual-activity on
set -g -q mouse on
bind -T root PPage if-shell -F "#{alternate_on}" "send-keys PPage" "copy-mode -e; send-keys PPage"
#bind -T copy-mode PPage send -X page-up
#bind -T copy-mode NPage send -X page-down
#bind -T copy-mode WheelUpPane send -X halfpage-up
#bind -T copy-mode WheelDownPane send -X halfpage-down
#bind -T copy-mode M-w send -X copy-pipe "reattach-to-user-namespace pbcopy"
bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
# bind resize commands to keys
bind = resize-pane -D 5
bind + resize-pane -U 5
bind < resize-pane -L 5
bind > resize-pane -R 5
bind z resize-pane -Z
# list-clients
bind * list-clients
# refresh-client
bind R refresh-client
#unbind -T copy-mode M-w
#bind -T copy-mode c send -X copy-selection
bind r source-file ~/.tmux.conf
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# set -g @plugin 'arcticicestudio/nord-tmux'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
run '~/.tmux/plugins/tpm/tpm'