-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
73 lines (70 loc) · 2.99 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
# Change prefix key
set -g prefix C-t
bind C-t send-prefix
unbind C-b
# Basic
set -sg escape-time 0
set -g mouse on
set -g history-limit 10000
set -g status-interval 1
set -g display-time 3500
set -g visual-activity on
setw -g monitor-activity on
bind r source-file "~/.tmux.conf" \; display "Reloaded!"
# Layout
## Session
bind C-c new-session
bind -r C-l switch-client -n
bind -r C-h switch-client -p
## Window
set -g base-index 1
bind c new-window
bind -r p select-window -t :-
bind -r n select-window -t :+
## Pane
set -g pane-base-index 1
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# Style
# Gruvbox-like palette
set -g @color_bg "colour235" #282828
set -g @color_fg "colour229" #fbf1c7
set -g @color_red "colour124" #cc241d
set -g @color_green "colour106" #98971a
set -g @color_yellow "colour172" #d79921
set -g @color_blue "colour66" #458588
set -g @color_purple "colour132" #b16286
set -g @color_aqua "colour72" #689d6a
set -g @color_orange "colour166" #d65d0e
set -g @color_gray "colour237" #3c3836
# 256color
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
# Status
set -g status-position top
set -g status-justify centre
# FIXME: variable not working
set -g status-bg "colour237"
set -g status-fg "colour237"
set -g status-left-length 150
set -g status-left "#[bg=#{@color_orange}]#[fg=#{@color_fg}] #S:#I.#P #[bg=#{@color_yellow}]#[fg=#{@color_orange}]#[bg=#{@color_yellow}]#[fg=#{@color_fg}] #[bg=#{@color_aqua}]#[fg=#{@color_yellow}]#[bg=#{@color_aqua}]#[fg=#{@color_fg}] #[bg=#{@color_gray}]#[fg=#{@color_aqua}]"
set -g status-right-length 150
set -g status-right "#[bg=#{@color_aqua}]#[fg=#{@color_gray}]#[bg=#{@color_aqua}]#[fg=#{@color_fg}] #[bg=#{@color_yellow}]#[fg=#{@color_aqua}]#[bg=#{@color_yellow}]#[fg=#{@color_fg}] #[bg=#{@color_orange}]#[fg=#{@color_yellow}]#[bg=#{@color_orange}]#[fg=#{@color_fg}] %Y/%m/%d(%a) %H:%M "
setw -g window-status-format "#[bg=#{@color_blue}]#[fg=#{@color_gray}]#[bg=#{@color_blue}]#[fg=#{@color_fg}] #I #W #[bg=#{@color_gray}]#[fg=#{@color_blue}]"
setw -g window-status-current-format "#[bg=#{@color_red}]#[fg=#{@color_gray}]#[bg=#{@color_red}]#[fg=#{@color_fg}] #I #W #[bg=#{@color_gray}]#[fg=#{@color_red}]"
# Pane
set -g pane-border-style "fg=#{@color_fg}"
set -g pane-active-border-style "fg=#{@color_green}"
set -g pane-border-status bottom
set -g pane-border-format "#{?pane_active,#[bg=#{@color_green}]#[fg=#{@color_bg}],#[bg=#{@color_fg}]#[fg=#{@color_bg}]}#{?pane_active,#[bg=#{@color_green}]#[fg=#{@color_fg}],#[bg=#{@color_fg}]#[fg=#{@color_gray}]} #I.#P : #{pane_current_command} #{?pane_active,#[bg=#{@color_bg}]#[fg=#{@color_green}],#[bg=#{@color_bg}]#[fg=#{@color_fg}]}"
# Clock
# FIXME: variable not working
setw -g clock-mode-colour "colour132"