-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
128 lines (97 loc) · 3.1 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
# vim:set ft=tmux:
# set escape timeout to 0
set -gs escape-time 0
# set 256 color terminal
set -g default-terminal "screen-256color"
# enable mouse support
set -g mouse
#set -g mouse-select-pane on
#set -g mouse-resize-pane on
#set -g mouse-select-window on
setw -g xterm-keys on
# set prefix key to ctrl+a
unbind C-b
set -g prefix C-a
# more intuitive keybindings for splitting
unbind %
bind h split-window -v
unbind '"'
bind v split-window -h
# pane selection
bind Left select-pane -L
bind Right select-pane -R
bind Up select-pane -U
bind Down select-pane -D
# pane movement
bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
# set vi keys
unbind [
bind Escape copy-mode
setw -g mode-keys vi
# send the prefix to client inside window (ala nested sessions)
bind-key a send-prefix
# toggle last window like screen
bind-key C-b last-window
# confirm before killing a window or the server
bind-key k confirm kill-window
bind-key K confirm kill-server
# toggle statusbar
bind-key b set-option status
# ctrl+left/right cycles thru windows
bind-key -n C-right next
bind-key -n C-left prev
# open a man page in new window
bind m command-prompt "split-window 'exec man %%'"
# quick view of processes
bind-key t split-window "exec htop"
# scrollback buffer n lines
set -g history-limit 5000
# listen for activity on all windows
set -g bell-action any
# on-screen time for display-panes in ms
set -g display-panes-time 2000
# start window indexing at one instead of zero
set -g base-index 1
# enable wm window titles
set -g set-titles on
# border colors
set -g pane-border-fg colour0
set -g pane-active-border-bg default
set -g pane-active-border-fg colour8
# wm window title string (uses statusbar variables)
set -g set-titles-string '#T'
# initialize session
#new -n "zsh" zsh
#neww -n "weechat" weechat-curses
#neww -n "mutt" mutt
#neww -n "ranger" ranger
# statusbar --------------------------------------------------------------
set -g status-interval 10
#set -g status-justify centre # center align window list
#set -g status-left-length 20
#set -g status-left ' #[fg=green]#H #[fg=colour8]• #[fg=blue]#(uname -r | cut -b 1-5)#[default]'
set -g status-left ' '
#set -g status-right ' '
set -g status-right-length 60
set -g status-right "#[fg=blue]#S #I:#P #[fg=yellow]:: %d %b %Y #[fg=green]:: #(date | awk '{print $4}')::"
set -g window-status-format '#W '
set -g window-status-current-format '#W '
# default statusbar colors
set -g status-fg default
set -g status-bg colour0
# default window title colors
set-window-option -g window-status-fg colour7
set-window-option -g window-status-bg default
# active window title colors
set-window-option -g window-status-current-fg colour15
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bold
# command/message line colors
set -g message-fg cyan
set -g message-bg default
set -g message-attr bright
# urgent windows
set-window-option -g window-status-bell-bg default
set-window-option -g window-status-bell-fg colour9
set-window-option -g window-status-bell-attr bold