forked from IOAyman/conf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
85 lines (63 loc) · 2.29 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
run '~/.tmux/tpm/tpm'
# main prefix Alt-x
unbind C-b
set -g prefix M-x
bind M-d send-prefix
# reload ~/.tmux.conf using PREFIX r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# split window horizontaly
bind | split-window -h
# split window horizontaly
bind - split-window -v
# assume 256 colors
set -g default-terminal "screen-256color"
# default statusbar colors
set-option -g status-bg colour235 #base02
set-option -g status-fg colour220
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg colour33
set-window-option -g window-status-bg default
# active window title colors
set-window-option -g window-status-current-fg colour220 #yellow
set-window-option -g window-status-current-bg default
# pane border
set-option -g pane-border-fg colour235 #base02
set-option -g pane-active-border-fg colour46 #base01
# message text
set-option -g message-bg colour235 #base02
set-option -g message-fg colour196 #orange
# pane number display
set-option -g display-panes-active-colour colour20 #blue
set-option -g display-panes-colour colour196 #orange
# Zero-based indexing is sure great in programming languages,
# but not so much in terminal multiplexers where that zero is all the way on the other side of the keyboard.
set-option -g base-index 1
# Enable mouse
set-window-option -g mouse on
# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access.
set -s escape-time 50
#statusline setup
set -g status on
set -g status-utf8 on
set -g status-interval 2
set -g status-right-length 70
# online
#set -g @online_icon "ok"
#set -g @offline_icon "offline!"
#set -g status-right "#{online_status}"
# battery
#set -g status-right '#[fg=colour45]Batt: #{battery_icon} #{battery_percentage} #{battery_remain}'
# uptime
set -g status-right "#[fg=cyan][↑ #(uptime | sed -r 's/.*up//' | sed 's/,.*//' | sed 's/^ *//')]"
#load average
set -ag status-right "#[fg=cyan][#(uptime | sed 's/.*load average: //' | sed 's/,//g')]"
#date/time
set -ag status-right "#[fg=cyan][%d-%m-%Y %H:%M]"
# ctrl-Bmeta-Q exit terminal
bind-key M-q kill-session
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-online-status'
set -g @plugin 'tmux-plugins/tmux-battery'