-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.conf
100 lines (86 loc) · 4.18 KB
/
common.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
set -g default-shell "/usr/bin/zsh"
set -g default-terminal "st-256color"
set -sg escape-time 0
setw -g aggressive-resize off
setw -g monitor-activity off
set -g visual-activity off
#set-option -g mouse-select-pane on
#### COLOUR
# default statusbar colors
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
#set-option -g status-attr default
# default window title colors
#set-window-option -g window-status-fg colour244
#set-window-option -g window-status-bg default
#set-window-option -g window-status-attr dim
# active window title colors
#set-window-option -g window-status-current-fg colour7 #orange
#set-window-option -g window-status-current-bg colour27
#set-window-option -g window-status-current-attr bright
# pane border
#set-option -g pane-border-fg colour235 #base02
#set-option -g pane-active-border-fg colour240 #base01
# message text
#set-option -g message-bg colour235 #base02
#set-option -g message-fg colour166 #orange
# pane number display
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
# clock
set-window-option -g clock-mode-colour colour64 #green
#window with alert
#set-window-option -g window-status-activity-fg colour234 #orange
#set-window-option -g window-status-activity-bg colour60
#set-window-option -g window-status-activity-attr dim
#set -g status-left '#[fg=colour235,bg=colour252,bold] ⎈ #S #[fg=colour252,bg=colour238,nobold]⮀#[fg=colour245,bg=colour238,bold] #(whoami) #[fg=colour238,bg=colour234,nobold]⮀'
#set -g status-left '#[fg=colour235,bg=colour252,bold] ⎈ #S #[fg=colour238,bg=colour234,nobold]'
#set -g status-right '#(~/.tmux/status.sh)'
#set -g status-right '$TMUX_STATUS_RIGHT'
#set -g status-left '$TMUX_STATUS_LEFT'
#set -g status-left '#(echo \$TMUX_STATUS_LEFT)'
#set -g status-right '#(echo \$TMUX_STATUS_RIGHT)'
set -g window-status-format "#[fg=white,bg=colour234] #I #W "
#set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=colour25,bg=colour39,noreverse,bold] #I ⮁ #W #[fg=colour39,bg=colour234,nobold]⮀"
set -g window-status-current-format "#[fg=colour234,bg=colour39]#[fg=colour25,bg=colour39,noreverse,bold] #I #W #[fg=colour39,bg=colour234,nobold]"
bind b split-window "tmux lsw | percol --initial-index $(tmux lsw | awk '/active.$/ {print NR-1}') | cut -d':' -f 1 | xargs tmux select-window -t"
bind B split-window "tmux ls | percol --initial-index $(tmux ls | awk '/attached.$/ {print NR-1}') | cut -d':' -f 1 | xargs tmux switch-client -t"
bind-key 0 select-window -T -t :0
bind-key 1 select-window -T -t :1
bind-key 2 select-window -T -t :2
bind-key 3 select-window -T -t :3
bind-key 4 select-window -T -t :4
bind-key 5 select-window -T -t :5
bind-key 6 select-window -T -t :6
bind-key 7 select-window -T -t :7
bind-key 8 select-window -T -t :8
bind-key 9 select-window -T -t :9
bind-key S-r command-prompt -I "rename-window "
bind-key l lock-session
bind-key y setw synchronize-panes
bind-key | split-window -h -c '#{pane_current_path}'
bind-key \ split-window -h -c '#{pane_current_path}'
bind-key - split-window -v -c '#{pane_current_path}'
bind-key x kill-pane
bind-key X kill-window
bind-key q confirm-before kill-session
bind-key Q confirm-before kill-server
bind-key , previous-window # <
bind-key . next-window # >
bind-key < swap-window -t :-
bind-key > swap-window -t :+
bind-key w split-window "tmux select-window -t `tmux list-windows|cut -d ' ' -f 1,2|percol|cut -d ':' -f 1`"
bind m detach-client -a
bind C-r command-prompt -I "rename-window "
bind-key ` command-prompt -I '1' -p 'window:' 'select-window -t %1'
#Copy tmux paste buffer to CLIPBOARD
bind C-c run "tmux show-buffer | xclip -i -selection clipboard"
#Copy CLIPBOARD to tmux paste buffer and paste tmux paste buffer
bind C-v run "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer"
set-window-option -g xterm-keys on
#set-option -g lock-command vlock
set-option -g status-interval 1
set-option -g update-environment -r
set-window-option -g mode-keys vi
set-option -g history-limit 100000
# vim: set ft=tmux: