-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
136 lines (113 loc) · 3.39 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
128
129
130
131
132
133
134
135
136
# Settings
## Set terminal type
set -g default-terminal "linux"
## visual notification of activity in other windows
setw -g monitor-activity on
set -g visual-activity on
## Window/pane numbering
set -g base-index 1
## Status bar settings
### Status bar general
set-option -g status on # turn the status bar on
set -g status-interval 5 # set update frequencey (default 15 seconds)
set-option -g status-position top # position the status bar at top of screen
#### COLOUR (Solarized dark)
# default statusbar colors
set-option -g status-bg black #base02
set-option -g status-fg yellow #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg brightblue #base0
set-window-option -g window-status-bg default
#set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg brightred #orange
set-window-option -g window-status-current-bg default
#set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg black #base02
set-option -g pane-active-border-fg brightgreen #base01
# message text
set-option -g message-bg black #base02
set-option -g message-fg brightred #orange
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# clock
set-window-option -g clock-mode-colour green #green
# bell
set-window-option -g window-status-bell-style fg=black,bg=red #base02, red
### Right side status bar (always on info)
set -g status-right-length 160
set -g status-right '#(tmux_status s)'
### Left side status bar (notifications)
set -g status-left-length 75
set -g status-left '#(tmux_status n)'
### Color of pane separation
set -g pane-border-style "fg=white"
set -g pane-active-border-style "fg=green bg=default"
# Keybindings
# ===========
# General
# -------
### Change default prefix
set-option -g prefix C-a
set -s escape-time 0
### vi-like keybindings, linux terminal
set -g mode-keys vi
### Reload tmux configuration
unbind-key R
bind-key R source-file ~/.tmux.conf
# Navigation
# ----------
### Movement between windows
unbind-key <
unbind-key >
bind-key < last-window
bind-key > next-window
### Movement between panes
unbind-key j
unbind-key k
unbind-key h
unbind-key l
bind-key j select-pane -D
bind-key k select-pane -U
bind-key h select-pane -L
bind-key l select-pane -R
### Splitting panes horizontally/vertically
unbind-key -
unbind-key |
bind-key - split-window -v -c "#{pane_current_path}"
bind-key | split-window -h -c "#{pane_current_path}"
### Resizing panes
unbind-key J
unbind-key K
unbind-key H
unbind-key L
bind-key -r J resize-pane -D 5
bind-key -r K resize-pane -U 5
bind-key -r H resize-pane -L 5
bind-key -r L resize-pane -R 5
### Kill current pane
unbind-key x
bind-key q kill-pane
### Move panes
unbind-key m
bind-key m command-prompt -p "send to: " "join-pane -t '%%'"
# Run Commands
# ------------
### music controls
unbind-key Space
unbind-key Up
unbind-key Down
unbind-key Left
unbind-key Right
unbind-key PageUp
unbind-key PageDown
bind-key Space run-shell 'music cmus pause'
bind-key Left run-shell 'music cmus prev'
bind-key Right run-shell 'music cmus next'
bind-key -r Up run-shell 'music cmus volume +'
bind-key -r Down run-shell 'music cmus volume -'
bind-key PageUp run-shell 'music vote up'
bind-key PageDown run-shell 'music vote down'