-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
80 lines (66 loc) · 2.8 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
# Change Prefix
unbind-key C-b
set-option -g prefix C-t
bind-key C-t send-prefix
# Resize Pane like vi mode
bind-key C-h resize-pane -L 5
bind-key C-l resize-pane -R 5
bind-key C-j resize-pane -D 5
bind-key C-k resize-pane -U 5
# Split Pane like vi mode
bind-key h split-window
bind-key v split-window -h
# Enable/Disable synchronize pane
bind-key C-s set synchronize-pane
# Color Settings(older than v2.9)
set -g status-bg colour235
set -g status-fg colour15
#setw -g window-status-current-bg colour238
#setw -g window-status-current-fg colour12
#set -g message-bg colour102
#set -g message-fg colour0
#set -g pane-active-border-fg colour85
#set -g pane-active-border-bg colour8
#set -g pane-border-fg colour12
#set -g pane-border-bg colour8
#set -g status-right-bg colour238
#set -g status-right-fg colour15
# Color Settings(newer than v2.9)
setw -g window-status-current-style bg="colour238"
setw -g window-status-current-style fg="colour12"
set -g message-style bg="colour102"
set -g message-style fg="colour0"
set -g pane-active-border-style fg="colour85"
set -g pane-active-border-style bg="colour60"
set -g pane-border-style fg="colour12"
set -g pane-border-style bg="colour8"
set -g status-right-style bg="colour238"
set -g status-right-style fg="colour15"
# Custom status line
set -g status-right-length 100
#set -g status-right "🔋 #(battery -c tmux) #[fg=colour232]| #[fg=colour83]I 💓 #[fg=colour130]Monkey 🐒 #[fg=white] #[fg=colour232]| 📅 #[fg=colour7] [%Y-%m-%d(%a) %H:%M:%S]"
set-option -g @batt_charged_icon "🎉 "
set-option -g @batt_discharging_icon "🔋 "
#set -g status-right " #{battery_icon} #{battery_percentage} #[fg=colour232]| #[fg=colour83]I 💓 #[fg=colour130]friends 🐒 🐳 🐮 #[fg=white]#[fg=colour232]| 📅 #[fg=colour7][%Y-%m-%d(%a) %H:%M:%S]"
set -g status-right "#(/bin/bash $HOME/.tmux/plugins/kube-tmux/kube.tmux 250 red cyan)#[fg=colour232] | #{battery_icon} #[fg=white]#{battery_percentage} #[fg=colour232]| #[fg=colour83]I 💓 #[fg=colour130]friends 🐒 🐳 🐮 #[fg=white]#[fg=colour232]| 📅 #[fg=colour7][%Y-%m-%d(%a) %H:%M:%S]"
# Reload conf
bind r source-file ~/.tmux.conf
### Unicode: U+1F412 (U+D83D U+DC12), UTF-8: F0 9F 90 92
# VI bind
set-window-option -g mode-keys vi
bind -n S-left select-pane -L
bind -n S-down select-pane -D
bind -n S-up select-pane -U
bind -n S-right select-pane -R
# trick for esc key delay
set -sg escape-time 0
# bind copy to clipboard
#bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# Enable 'open' command in tmux
set -g default-command "reattach-to-user-namespace -l ${SHELL}"
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-battery'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'