-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
108 lines (89 loc) · 2.25 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
### Unbind existing tmux key bindings (except 0-9).
set -g default-shell /bin/bash
set-option -g default-terminal screen-256color
set -g visual-activity off
set-window-option -g utf8 on
set-window-option -g mode-keys vi # vi key
set-option -g status-keys vi
# Global parameters
set -g base-index 1
set-option -g status-utf8 on
set -g status-bg black
set -g status-fg cyan
set-window-option -g window-status-current-attr bright
set-window-option -g window-status-current-bg black
set-window-option -g window-status-current-fg '#cdff00'
set-option -g set-titles off
setw -g aggressive-resize off
setw -g monitor-activity off
set -g status-right "#(conky -c /home/lee/terralinux/script/conmux -i 1)"
set -g status-right-length 65
set -g status-interval 10
# Establish initial session
new -d -nsys 'exec tail -f /var/log/messages' #screen 0:1
splitw -h -p 50 -t 0 'exec htop'
splitw -v -p 50 -t 1 'exec ncmpcpp'
neww -d -nMail 'exec mutt' #0:2
neww -d -nIRC 'exec irssi'
neww -d -nRanger 'exec ranger' #0:3
neww -d -nTerra 'exec bash'
neww -d -nRoot 'exec sudo bash'
set-window-option -t0:2 monitor-activity on
set-window-option -t0:3 monitor-activity on
#---------------------------------------------------------
# a whole lot of crap to make tmux feel more like screen |
#---------------------------------------------------------
# Change Default send-prefix
unbind C-b
bind C-a send-prefix
set -g prefix C-a
# Restart Source
bind r source-file ~/.tmux.conf
# screen ^C c
unbind ^C
bind ^C new-window
# detach ^D d
unbind ^D
bind ^D detach
# displays *
unbind *
bind * list-clients
# Windows
bind -n C-right next
bind -n C-left prev
# title A
unbind A
bind A command-prompt "rename-window %%"
# other ^A
unbind ^A
bind ^A last-window
# windows ^W w
unbind ^W
bind ^W list-windows
unbind w
bind w list-windows
# quit \
unbind \
bind \ confirm-before "kill-server"
# kill K k
unbind K
bind K confirm-before "kill-window"
unbind k
bind k confirm-before "kill-window"
# redisplay ^L l
unbind ^L
bind ^L refresh-client
unbind l
bind l refresh-client
# Split
unbind %
bind = split-window -h # horizontal split
unbind '"'
bind - split-window -v # vertical splt
# " windowlist -b
unbind '"'
bind '"' choose-window
unbind Left
bind h select-pane -L
unbind Right
bind l select-pane -R