-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
69 lines (56 loc) · 2.09 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
# Change escape to c-a
set -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
# C-c also create new window, like in screen
bind c new-window -c "#{pane_current_path}"
# Reload settings
bind r source-file ~/.tmux.conf \; display "Configuration reloaded!"
# Use Vi mode
setw -g mode-keys vi
# Use xterm function key sequence
setw -g xterm-keys on
# More straight forward key bindings for splitting
unbind %
bind | split-window -h -c "#{pane_current_path}"
bind h split-window -h -c "#{pane_current_path}"
unbind '"'
bind - split-window -v -c "#{pane_current_path}"
bind v split-window -v -c "#{pane_current_path}"
bind z resize-pane -Z
# Notifying if other windows has activities
set -g visual-activity off
setw -g monitor-activity on
# Terminal emulator window title, set it to off so that we can use zsh to
# operate it
setw -g automatic-rename off
# Altscreen
setw -g alternate-screen on
# Lock screen after 5 minutes
# set -g lock-server on
# set -g lock-command "cmatrix -s -b"
# set -g lock-after-time 1800
# Start index from 0
set -g base-index 0
# set renumber-windows off
# Terminal overrides
set -g terminal-overrides "*88col*:colors=88,*256col*:colors=256,xterm*:colors=256"
set -g default-terminal "screen-256color"
# display message for 2 seconds
set-option -g display-time 2000
# Set status bar
set -g status-justify centre
set -g status-bg default
set -g status-left "#[fg=cyan]:#[fg=blue]: #[fg=red][ #[fg=colour227]Session: #S #[fg=red]]#[default]"
set -g status-left-length 30
set -g status-right-length 35
if-shell "battery --has" "set -g status-right '#[fg=red][ #(battery -t) #[fg=colour154]%H:%M #[fg=colour183]%a %m-%d #[fg=red]] #[fg=blue]:#[fg=cyan]:#[default]'"
setw -g window-status-format '#[fg=white]#I #T#[default] '
setw -g window-status-current-format '#[fg=blue,bold,reverse]#I #T#[default] '
setw -g window-status-bell-attr bold,reverse
setw -g window-status-bell-fg red
setw -g window-status-bell-bg default
setw -g window-status-activity-attr bold,reverse
setw -g window-status-activity-fg white
setw -g window-status-activity-bg red
set -g default-command "reattach-to-user-namespace -l zsh"