/
tmux.conf
118 lines (99 loc) · 3.93 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
# Unbind Ctrl-b for the prefix
# and use backtick key as prefix instead
#
unbind C-b
set -g prefix C-s
bind C-s send-prefix
bind-key L last-window
# Reload config
bind-key r source-file ~/.tmux.conf
# Something about key bindings and vi
set-option -g status-keys vi
setw -g mode-keys vi
# copy / paste stuff
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
bind-key y run-shell "tmux save-buffer - | reattach-to-user-namespace pbcopy"
# idk ... monitor
setw -g monitor-activity on
# Set color term
set -g default-terminal "screen-256color"
# Start numbering windows at 1
set -g base-index 1
# Auto-window title
set-window-option -g automatic-rename on
set-option -g set-titles on
# Make mouse useful in copy mode
set-option -g -q mouse on
#set -g mouse-resize-pane on
#set -g mouse-select-window on
# Page up/down scroll
bind-key -T root PPage if-shell -F "#{alternate_on}" "send-keys PPage" "copy-mode -e; send-keys PPage"
bind-key -t vi-copy PPage page-up
bind-key -t vi-copy NPage page-down
# Scrolling Mouse Wheel
bind-key -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
bind-key -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
bind-key -t vi-copy WheelUpPane halfpage-up
bind-key -t vi-copy WheelDownPane halfpage-down
# Allow mouse to select pane
#set -g mouse-select-pane on
# Scroll history
set -g history-limit 100000
# Set escape time
set -sg escape-time 0
# OLD Theme
#set -g status-bg black
#set -g status-fg white
#set -g window-status-current-bg white
#set -g window-status-current-fg black
#set -g window-status-current-attr bold
#set -g status-interval 60
#set -g status-left-length 30
#set -g status-left '#[fg=blue](#S) #(whoami)'
#set -g status-right '#[fg=yellow]#[fg=white]#H %d-%m-%y %H:%M#[default]'
# Border panel colors
set -g pane-border-style fg=blue
set -g pane-active-border-style fg=blue
set -g pane-active-border-style bg=default
#set -g status-justify left
#set -g status-bg black
#set -g status-fg white
#set-option -g status-interval 5
#set -g status-right-length 150
#set -g status-left ""
#iset -g status-right "#[fg=green] %m-%d-%Y %H:%M #(whoami) "
# fullscreen crap
setw -g aggressive-resize on
# # THEME
# This tmux statusbar config was created by tmuxline.vim
# on Sun, 16 Mar 2014
set-option -g status-position top
# This tmux statusbar config was created by tmuxline.vim
# on Sun, 16 Mar 2014
set -g status-bg 'colour0'
set -g message-command-fg 'colour231'
set -g status-justify 'left'
set -g status-left-length '100'
set -g status 'on'
set -g pane-active-border-fg 'colour254'
set -g message-bg 'colour31'
set -g status-right-length '100'
set -g status-right-attr 'none'
set -g message-fg 'colour231'
set -g message-command-bg 'colour31'
set -g status-attr 'none'
set -g status-utf8 'on'
set -g pane-border-fg 'colour240'
set -g status-left-attr 'none'
setw -g window-status-fg 'colour250'
setw -g window-status-attr 'none'
setw -g window-status-activity-bg 'colour234'
setw -g window-status-activity-attr 'none'
setw -g window-status-activity-fg 'colour250'
setw -g window-status-separator ''
setw -g window-status-bg 'colour234'
set -g status-left '#[fg=colour16,bg=colour254,bold] #S #[fg=colour254,bg=colour234,nobold,nounderscore,noitalics]'
set -g status-right '#[fg=colour236,bg=colour0,nobold,nounderscore,noitalics]#[fg=colour247,bg=colour236]%Y-%m-%d %H:%M #[fg=colour252,bg=colour236,nobold,nounderscore,noitalics]#[fg=colour235,bg=colour252] #h '
setw -g window-status-format '#[fg=colour244,bg=colour234] #I #[fg=colour250,bg=colour234] #W#[fg=colour236,bg=colour0,nobold,nounderscore,noitalics] '
setw -g window-status-current-format '#[fg=colour234,bg=colour31,nobold,nounderscore,noitalics]#[fg=colour117,bg=colour31] #I #[fg=colour231,bg=colour31,bold] #W #[fg=colour31,bg=colour234,nobold,nounderscore,noitalics]'