-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
121 lines (88 loc) · 3.09 KB
/
tmux.conf
File metadata and controls
121 lines (88 loc) · 3.09 KB
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
set -g default-terminal "termite"
#set -g prefix C-a
#unbind-key C-b
#
#bind-key C-a send-prefix
bind c new-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}"
# change current window
bind-key -n M-n prev
bind-key -n M-e next
# back to previous session
bind-key -n M-h switch-client -l
# kill the current window
bind-key K kill-window
# Enter session choices (Same as `s)
bind-key -n M-h choose-session
#bind-key -n M-i neww ~/.tmux/menu
# rotate current pane
unbind-key o
bind-key -n M-Space select-pane -t :.+
# rotate panes order
unbind-key M-o
bind-key M-Space rotate-window -D
# enter copy mode
#unbind-key PPage
bind-key -n C-PPage copy-mode -u
# 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
# fix $TERM
# set -g default-terminal "screen-256color"
# scrollback buffer n lines
set -g history-limit 8000
# listen for activity on all windows
set -g bell-action any
# start window indexing at one instead of zero
set -g base-index 1
# don't fucking wait when I press <esc>
set -s escape-time 1
# move tmux copy buffer into x clipboard
bind-key -n M-y save-buffer /tmp/tmux-buffer \; run-shell "cat /tmp/tmux-buffer | xclip"
# move tmux copy buffer into google search
bind-key -n M-g save-buffer /tmp/tmux-buffer \; run-shell "gg $(cat /tmp/tmux-buffer)"
# statusbar --------------------------------------------------------------
# Time display messages in status bar
set -g display-time 1000
# default statusbar colors
set -g status-fg white
set -g status-bg black
# set -g status-attr default
# 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-fg white
# set -g message-bg blue
# set -g message-attr bright
# Refresh status line every n second
set -g status-interval 1
set -g status-left-length 60
set -g status-left "#[fg=colour2]#S\\ #[default]"
set -g status-right-length 200
set -g status-right "#(/home/matael/.tmux.status)"
# use vi bindings in esc mode
set-window-option -g mode-keys vi
set-option -g status-keys vi
# Restore page-up on copy-mode
#bind-key -t vi-copy PPage page-up
# this looks broken
set-window-option -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 '
set-window-option -g window-status-current-format '(#I)'
# default window title colors
# set-window-option -g window-status-fg colour10
# set-window-option -g window-status-bg default
# set-window-option -g window-status-attr default
# active window title colors
# set-window-option -g window-status-current-fg colour14
# set-window-option -g window-status-current-bg colour8
# set-window-option -g window-status-current-attr bright
set -ga terminal-overrides ",xterm-termite:Tc"
run-shell "~/useful/nord-tmux/nord.tmux"
# vim: filetype=tmux