-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
90 lines (69 loc) · 2.53 KB
/
tmux.conf
File metadata and controls
90 lines (69 loc) · 2.53 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
# if run as "tmux attach", create a session if one does not already exist
new-session -n $HOST
unbind r
bind r source-file ~/.tmux.conf\; display 'Reloaded tmux config'
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
# Use vi key bindings in copy mode. Space starts marking, enter copies.
setw -g mode-keys vi
# No delay for escape key press
set -sg escape-time 0
# Use the system clipboard
set -g set-clipboard on
# Rebind the prefix key to Ctrl-A
# unbind C-b
# set-option -g prefix C-a
# bind-key C-a send-prefix
# Start copy mode for Shift-Up
bind -n S-Up copy-mode
# Paste on Control-]
bind -n C-] paste-buffer
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
##### Status line #####
# Refresh status line every 5 seconds
set -g status-interval 5
# Start window and pane indices at 1.
set -g base-index 1
set -g pane-base-index 1
# length of tmux status line
set -g status-left-length 10
# set -g status-right-length 150
# Make active pane border blue
# set -g pane-active-border-style "fg=blue"
# Set the left and right status
set -g status-left '#[bg=colour7]#[fg=colour0]#{?client_prefix,#[bg=colour2],} ❏ #S #[bg=colour8]#[fg=colour7]#{?client_prefix,#[fg=colour2],}#{?window_zoomed_flag, ZOOM ,} '
# set -g status-right '#[fg=colour2]#(~/dotfiles/tmux_scripts/uptime.sh) #[fg=colour1]#[fg=colour4]#[bg=colour4]#[fg=colour0] #(~/dotfiles/tmux_scripts/music.sh) #[bg=colour4]#[fg=colour7]#[bg=colour7]#[fg=colour0] %b %d %H:%M '
set -g status-right ""
# Set the background color
set -g status-bg colour8
#colour0 (black)
#colour1 (red)
#colour2 (green)
#colour3 (yellow)
#colour4 (blue)
#colour7 (white)
#colour5 colour6 colour7 colour8 colour9 colour10 colour11 colour12 colour13 colour14 colour15 colour16 colour17
#D ()
#F ()
#H (hostname)
#I (window index)
#P()
#S (session index)
#T (pane title)
#W (currnet task like vim if editing a file in vim or zsh if running zsh)
# customize how windows are displayed in the status line
set -g window-status-current-format "#[fg=colour8]#[bg=colour4]#[fg=colour7]#[bg=colour4] #I* #[fg=colour7] #{=50:window_name} #[fg=colour4]#[bg=colour8]"
set -g window-status-format "#[fg=colour244]#[bg=colour8]#I-#[fg=colour240] #{=50:window_name}"