-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
129 lines (103 loc) · 4.07 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
# Mouse support
set -g mouse on
# :list-keys -T copy-mode-vi ;)
set-window-option -g mode-keys vi
set -g default-terminal "screen-256color"
set -ga terminal-overrides ',xterm-256color:Tc'
set-option -g history-limit 10000
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
# Key bindings
unbind C-b
set-option -g prefix C-a
bind -n F1 select-window -t 1
bind -n F2 select-window -t 2
bind -n F3 select-window -t 3
bind -n F4 select-window -t 4
bind -n F5 select-window -t 5
bind -n F6 select-window -t 6
bind -n F7 select-window -t 7
bind -n F8 select-window -t 8
bind -n F9 select-window -t 9
bind -n F10 select-window -t 0
bind -n S-Left select-pane -L
bind -n S-Right select-pane -R
bind -n S-Up select-pane -U
bind -n S-Down select-pane -D
# Set new panes to open in current directory
unbind '"'
unbind %
bind c new-window -c "#{pane_current_path}"
bind v split-window -c "#{pane_current_path}"
bind h split-window -h -c "#{pane_current_path}"
bind ;-Left selectp -L
# pane border
#set-option -g pane-border-style fg=colour235 #fg=base02
#set-option -g pane-active-border-style fg=colour240,bg=default #fg=base01
# message text
set-option -g message-style bg=colour235,fg=colour166 # bg=base02, fg=orange
# pane number display
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
# clock
set-window-option -g clock-mode-colour green #green
# reload config
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
# from powerline
run-shell "tmux set-environment -g TMUX_VERSION_MAJOR $(tmux -V | cut -d' ' -f2 | cut -d'.' -f1 | sed 's/[^0-9]*//g')"
run-shell "tmux set-environment -g TMUX_VERSION_MINOR $(tmux -V | cut -d' ' -f2 | cut -d'.' -f2 | sed 's/[^0-9]*//g')"
# status bar
#set -g status-style bg='#44475a',fg='#bd93f9'
#set -g status-right '#{ram_fg_color} CPU: #{cpu_icon} #{cpu_percentage} MEM: #{ram_icon} #{ram_percentage} | %a %h-%d %H:%M'
# status bar
if-shell '\( #{$TMUX_VERSION_MAJOR} -eq 2 -a #{$TMUX_VERSION_MINOR} -lt 2\) -o #{$TMUX_VERSION_MAJOR} -le 1' 'set-option -g status-utf8 on'
# status bar
set -g status-interval 2
set -g status-right-length 59
set -g renumber-windows on
set-option -g base-index 1
set-window-option -g pane-base-index 1
set -g status-left ''
#set -g status-right '#[default]#(tmux display-message -p "#S")#[default] #[fg=default]| #(acpi -b | cut -d "," -f 2 | sed "s/ //") #[fg=default]| #[default]%a %d %b %H:%M #[default]'
#set -g status-right '#[default]#(tmux display-message -p "#S")'
set -g status-right '#[fg=default]#(hostname)| %H:%M, %a %h-%d'
set-option -g status-position bottom
set-option -sg escape-time 300
set-option -g focus-events on
set -g status-bg green
set -g status-fg black
set -g window-status-current-bg black
set -g window-status-current-fg white
set -g window-status-current-attr bold
set -g status-interval 60
set -g status-left-length 30
# Dracula Color
white='#f8f8f2' # Foreground
dark_gray='#282a36' # Background
gray='#44475a' # Current Line / Selection
light_purple='#bd93f9' # Purple
dark_purple='#6272a4' # Comment
cyan='#8be9fd' # Cyan
green='#50fa7b' # Green
orange='#ffb86c' # Orange
red='#ff5555' # Red
pink='#ff79c6' # Pink
yellow='#f1fa8c' # Yellow
set -g status on
set -g status-fg $dark_purple
set -g status-bg $gray
set -g status-justify left
set -g status-interval 1
set -g status-left-length 100
set -g status-right-length 100
# Options -> ⧉ ❐
set -g status-left "#{?client_prefix,#[fg=$dark_gray bg=$green],#[fg=$dark_gray bg=$light_purple]} ⧉ #S "
set -g status-right "#[fg=$white] #{pane_current_path}"
set-window-option -g window-status-current-style "fg=$dark_purple bg=$white"
set-window-option -g window-status-current-format "#[bold italics] #I: #W #F "
# for some unknown reason this tmux section is being set to reverse from
# somewhere so we explictly remove it here
set-window-option -g window-status-style "fg=$dark_gray dim"
set-window-option -g window-status-format "#[none] #I: #{=20:window_name} "
set-window-option -g window-status-separator ""