-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtmux.conf
109 lines (80 loc) · 2.96 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
set -g prefix M-m
unbind-key C-b
# scrollback buffer n lines
set -g history-limit 100000
# listen for activity on all windows
set -g bell-action any
# don't fucking wait when I press <esc> ©thib
# mandatory for vim
set -s escape-time 1
# set terminal name
set -g default-terminal "screen-256color"
# cycles thru windows
bind-key -n M-z next
bind-key -n M-x prev
#Select next pane in numerical order
bind-key -n M-p select-pane -t :.+
#Select previous pane in numerical order
bind-key -n M-t select-pane -t :.-
# open url, need urlview installed
bind-key -n M-u capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlview" '$SHELL -c "urlview < /tmp/tmux-buffer"'
# Create new window
bind-key -n M-w new-window
# Split in 2 vertical panels
bind-key -n M-v split-window -h
# Split in 2 horizontal panels
bind-key -n M-h split-window
# Reload key
bind -n M-r source-file ~/.tmux.conf
bind-key -n C-p neww dmenu_workspace
# Resize pane without the prefix
bind-key -n C-Up resize-pane -U
bind-key -n C-Down resize-pane -D
bind-key -n C-Left resize-pane -L
bind-key -n C-Right resize-pane -R
# use vi bindings in esc mode
set-window-option -g mode-keys vi
set-option -g status-keys vi
# Enter copy mode
bind-key -n M-c copy-mode -u
# Give me my hj keys back for scrolling (bépo)
# bind-key -t vi-copy t cursor-down
# bind-key -t vi-copy s cursor-up
# bind-key -t vi-copy c cursor-left
# bind-key -t vi-copy r cursor-right
# bind-key -t vi-copy C-t page-down
# bind-key -t vi-copy C-s page-up
##CLIPBOARD selection integration
###Requires prefix key before the command key
##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"
# disable mouse
setw -g mouse off
# this looks broken
setw -g automatic-rename off
# Monitor for activity in the window. Windows with activity are highlighted in the status line.
set-window-option -g monitor-activity off
# Show short windows names in status bar
set-window-option -g window-status-format ' #I: #W '
set-window-option -g window-status-current-format '[ #I: #W ]'
# default window title colors
set-window-option -g window-status-style fg=colour10,bg=default
# active window title colors
set-window-option -g window-status-current-style fg=colour14,bg=colour8,underscore,bright
# vim: filetype=tmux
# when through ssh, use user@server instead of local
set -g set-titles on
set -g set-titles-string "#T"
# statusbar --------------------------------------------------------------
# Mostly stolen from http://github.com/ornicar/dotfiles
# default statusbar colors
set -g status-style fg=white,bg=black
# Refresh status line every n second
set -g status-interval 1
# a message is shown on a bell instead of it being passed through to the terminal
set -g visual-bell off
# command/message line colors
set -g message-style fg=white,bg=blue,bright
new-session