forked from Andersbakken/nrdp-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
140 lines (134 loc) · 4.38 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
source-file ~/.tmux-os-start.conf
#unbind-key -a
#options
set -g base-index 1
setw -g xterm-keys on
set-option -g status on
set-option -g status-interval 1
set -g history-limit 300000
setw -g aggressive-resize on
setw -g monitor-activity on
setw -g automatic-rename on
set-option -g repeat-time 700
set-option -g status-utf8 on
set-option -g default-shell /bin/bash
set -g default-terminal "screen"
#set -g set-remain-on-exit on
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
#mouse
set-window-option -g mode-mouse on
set-option -g mouse-select-pane on
set-option -g mouse-resize-pane on
set-option -g mouse-select-window on
# Toggle mouse on with ^B m
bind m \
set -g mode-mouse on \;\
set -g mouse-resize-pane on \;\
set -g mouse-select-pane on \;\
set -g mouse-select-window on \;\
display 'Mouse: ON'
# Toggle mouse off with ^B M
bind M \
set -g mode-mouse off \;\
set -g mouse-resize-pane off \;\
set -g mouse-select-pane off \;\
set -g mouse-select-window off \;\
display 'Mouse: OFF'
#bindings
set-option -g status-keys emacs
set-window-option -g mode-keys emacs
unbind C-b
set -g prefix C-j
bind-key C-j last-window
#bind-key C-y paste-buffer -s \015
bind-key C-\ choose-window
bind-key C-l send-keys -R
bind-key -r Space next-window
bind-key -n PPage copy-mode -u
bind-key -r m next
bind-key -r n next
bind-key -r p prev
bind -n C-Left prev
#bind -n M-Left prev
bind -n C-Right next
#bind -n M-Right next
bind -n M-` display-panes
bind-key ` display-panes
#bind -n M-` select-pane -t :.+
bind-key -r . select-pane -R
bind-key -r , select-pane -L
bind -n C-Up select-pane -U
bind -n C-Down select-pane -D
bind X confirm kill-window
bind A command-prompt "rename-window '%%'"
bind-key -r t rotate-window -D
bind-key -r T rotate-window -U
bind R source-file ~/.tmux.conf \; display-message "Reloaded..."
bind-key -r l nextl
bind-key -t emacs-copy C-v page-down
bind-key -t emacs-copy M-v page-up
bind-key -r -t emacs-copy M-Up page-up
#bind-key M-Up copy-mode -u
bind j send-prefix
bind - run "~/bin/tmux/tmux-split.sh -v"
bind _ command-prompt "split-window -v 'exec ~/bin/tmux/tmux-run.sh %%'"
bind \ run "~/bin/tmux/tmux-split.sh -h"
bind | command-prompt "split-window -h 'exec ~/bin/tmux/tmux-run.sh %%'"
bind k clear-history \; display-message "Cleared"
bind e run "emacsedit.sh -n \"$HOME/tmux.hardcopy\""
bind E run "~/bin/tmux/tmux-hardcopy.sh $HOME/tmux.hardcopy" \; run "emacsedit.sh -n \"$HOME/tmux.hardcopy\" >/dev/null 2>&1"
bind H run "~/bin/tmux/tmux-hardcopy.sh $HOME/tmux.hardcopy"
bind h pipe-pane -o "exec cat >>$HOME/'tmux-#W-#P.log'" \; display-message 'Toggled logging to $HOME/tmux-#W-#P.log'
#bind t run "bash -c ~/bin/emacsedit.sh -n /etc/passwd"
bind + run "~/bin/tmux/tmux-zoom.sh"
bind-key -r ( resize-pane -L 1
bind-key -r ) resize-pane -R 1
bind-key -r { resize-pane -U 1
bind-key -r } resize-pane -D 1
bind-key -r < swap-window -t -1
bind-key -r > swap-window -t +1
bind-key 1 select-window -t :1
bind-key 2 select-window -t :2
bind-key 3 select-window -t :3
bind-key 4 select-window -t :4
bind-key 5 select-window -t :5
bind-key 6 select-window -t :6
bind-key 7 select-window -t :7
bind-key 8 select-window -t :8
bind-key 9 select-window -t :9
bind -n M-1 select-window -t :1
bind -n M-2 select-window -t :2
bind -n M-3 select-window -t :3
bind -n M-4 select-window -t :4
bind -n M-5 select-window -t :5
bind -n M-6 select-window -t :6
bind -n M-7 select-window -t :7
bind -n M-8 select-window -t :8
bind -n M-9 select-window -t :9
#look
#set-option -g status-position top
set-option -g set-titles on
set-option -g set-titles-string "tmux:#I [ #W ]"
set-option -g message-fg black
set-option -g message-bg green
set-option -g message-attr dim
set -g status-fg black
set -g status-bg colour10
set -g status-attr dim
set -g status-justify left
set -g status-left-length 17
set -g status-left '#[bg=green]#[fg=red] %m/%d %H:%M:%S #[default]| '
set -g status-right-length 40
set -g status-right "#[bg=green]#[fg=red] #($HOME/bin/tmux/tmux-right.sh)"
setw -g window-status-activity-fg green
setw -g window-status-activity-bg red
setw -g window-status-format '#I #W '
setw -g window-status-current-format '#[bg=red]#I #W#[default] '
#TPM
set -g @sidebar-tree-command 'ls -1'
run-shell '$HOME/.tmux/tmux-sidebar/sidebar.tmux'
set -g @yank_selection "primary"
run-shell '$HOME/.tmux/tmux-yank/yank.tmux'
run-shell '$HOME/.tmux/tmux-open/open.tmux'
run-shell '$HOME/.tmux/tmux-copycat/copycat.tmux'
source-file ~/.tmux-os-end.conf