-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
60 lines (53 loc) · 2.05 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
# vim: ft=tmux
set -g default-terminal "xterm-256color"
set -as terminal-overrides ",*256col*:Tc"
set -g base-index 1
set -g aggressive-resize
set -s escape-time 0
set -g focus-events on
set -g display-time 1000
set -g status-interval 1
set -g history-limit 100000
setw -g mode-keys vi
setw -g automatic-rename on
setw -g renumber-windows on
# Key bindings
bind '"' split-window -v -c "#{pane_current_path}"
bind | split-window -h -c "#{pane_current_path}"
bind R respawn-pane -k
bind r source-file ~/.tmux.conf \; display-message "Configuration reloaded."
set -g mouse on
set -g set-clipboard on
set -g lock-after-time 500
set -g lock-command "tty-clock -S -c -t -B"
# Status Bar
set -g status-position bottom
set -g status-justify "left"
set -g status "on"
set -g status-left-style "none"
color_bg="#0f111b"
color_active_bg="#1b1c36"
# Middle section
set -g message-command-style "fg=$color_active_bg,bg=colour7"
set -g status-right-style "none"
set -g status-style "none,bg=$color_bg"
# Active border on pane
set -g pane-active-border-style "fg=green"
# When commands are run
set -g message-style "fg=$color_bg,bg=magenta"
# Inactive border on pane
set -g pane-border-style "fg=colour7"
set -g status-right-length "100"
set -g status-left-length "100"
setw -g window-status-activity-style "none"
# Separator colors
setw -g window-status-separator ""
setw -g window-status-style "none,fg=colour7,bg=$color_bg"
# Left
set -g status-left "#[fg=blue,bg=default] %H:%M#[fg=$color_bg,bg=default]"
# Right
set -g status-right "#[fg=colour7]#(curl api.ipify.org) #[fg=$color_active_bg]#[fg=colour7] #(tailscale ip -4) #[fg=$color_active_bg,bg=default]#[fg=blue,bg=$color_active_bg] #(cd #{pane_current_path}; git rev-parse --abbrev-ref HEAD) "
# Inactive window
setw -g window-status-format "#[fg=$color_active_bg,bg=default] #I #[fg=default,bg=default] #W "
# Active window
setw -g window-status-current-format "#[fg=$color_bg,bg=$color_active_bg]#[fg=green,bg=$color_active_bg] #I #[fg=$color_bg]#[fg=default,bg=$color_active_bg] #W #[fg=$color_active_bg,bg=default]"