-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
123 lines (105 loc) · 3.72 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
121
122
123
set-option -g default-terminal 'tmux-256color'
# Status Bar Options
set -g status-right-length 100
set -g status-right "#{?#(counttasks),#(counttasks),}#{?#(countmail),#[bg=colour214] #[bg=colour155]#[] #(countmail) ,}#[bg=colour214] #[bg=colour220,fg=black] %I:%M%p %b %d "
set -g status-left-length 80
#set -g status-left " [#{client_session}] #[bg=colour255] #{?#{==:#{pane_current_command},init},pwsh #P,#{pane_current_command}} "
set -g status-left "[#{client_session}]"
set -g status-interval 1
set -g status-style bg=colour214,fg=black
set -g window-status-current-style bg=colour220,fg=black
#set -g pane-border-format "#{?pane_active,#{pane_current_command},"─"}"
set -g pane-border-format "#{?pane_active,#[fg=colour11],"─"}"
set -g pane-border-status top
set-hook -g window-layout-changed 'set-window -F pane-border-status "#{?#{==:#{window_panes},1},off,top}"'
set-hook -g after-new-window 'set-window -F pane-border-status "#{?#{==:#{window_panes},1},off,top}"'
#set -g window-status-last-style bg=colour209,fg=black
set -g window-status-activity-style fg=yellow
set -g status-justify left
#set -g pane-border-style
set -g window-status-separator ""
set -g pane-active-border-style fg=colour220,bg=black
set -g pane-border-style fg=colour214,bg=black
set -g window-status-format " #W "
set -g window-status-current-format " #W "
#set inactive/active window styles
#set -g window-style bg=colour16,fg=colour254
#set -g window-active-style bg=colour232,fg=colour255
set -g window-style fg=colour247
set -g window-active-style fg=colour250
# Clock
set -g clock-mode-colour colour214
set -g clock-mode-style 12
# Hooks
set-hook -g client-resized 'run-shell "~/.tmux/hooks/on-resize"'
# Start Numbering at 1 instead of 0
set-option -g base-index 1
setw -g pane-base-index 1
# Renumber Windows Automatically
set-option -g renumber-windows on
# Send prefix
set-option -g prefix C-Space
unbind-key C-Space
bind-key C-Space send-prefix
# Prefix + Vim Resize Pines
unbind-key M-Up
unbind-key M-Down
unbind-key M-Left
unbind-key M-Right
unbind-key C-Up
unbind-key C-Down
unbind-key C-Left
unbind-key C-Right
unbind-key H
unbind-key J
unbind-key K
unbind-key L
#bind -r H resize-pane -L 5
#bind -r J resize-pane -D 5
#bind -r K resize-pane -U 5
#bind -r L resize-pane -R 5
bind -r C-H resize-pane -L
bind -r C-J resize-pane -D
bind -r C-K resize-pane -U
bind -r C-L resize-pane -R
# Ctrl+Alt+Vim Keys to Switch Panes
unbind-key Left
unbind-key Right
unbind-key Up
unbind-key Down
bind -n C-M-h select-pane -L
bind -n C-M-l select-pane -R
bind -n C-M-k select-pane -U
bind -n C-M-j select-pane -D
# Vlock
set -g lock-command vlock
#set lock-after-time 360
bind-key 'L' lock-session
# Vim Copy-Paste
#bind-key -T copy-mode-vi Enter send-keys -X copy-pipe 'xclip -sel clip -i' '\;' send -X clear-selection
# Mouse
set -g mouse on
bind -n MouseDown1StatusRight send-keys -t "org.3" 'due:today or +ACTIVE rc.gc=off' Enter \; select-pane -t "org.3" \; select-window -t "org"
# Window Split Keys
bind-key '/' split-window -h
bind-key '-' split-window -v
bind-key 'X' kill-window
bind-key 'P' split-window "pwsh.exe -nologo"
# Choose Tree
bind-key 't' choose-tree -Z
# Reload Config
bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
# vi Copy Mode
set-window-option -g mode-keys vi
# Scrollback History Limit
set-option -g history-limit 3000
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'tmux-plugins/tmux-yank'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com/user/plugin'
# set -g @plugin 'git@bitbucket.com/user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'