-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
79 lines (55 loc) · 2.38 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
# can be written in both ways:
# set-option <=> set
# set-window-option <=> setw
set-option -g default-shell /bin/zsh
set-option -g default-command /bin/zsh
set-option -s escape-time 0
set-option -g history-limit 1048576
set-option -g prefix C-q
bind-key C-q send-prefix
unbind-key C-b
# Display time
set-option -g display-time 3500
# Start window index 1 origin
set-option -g base-index 1
# Start pane index 1 origin
set-window-option -g pane-base-index 1
set-option -g status-left '#[fg=cyan,bg=#303030]#{?client_prefix,#[reverse],} #H[#S] #[default]'
set-option -g display-panes-time 10000
# Status-position to move the status line to the top of the screen
# available on tmux -V 1.7
# cf. http://sourceforge.net/projects/tmux/files/tmux/tmux-1.7/
set-option -g status-position top
set-option -g default-terminal "xterm-256color"
# set-option -g default-terminal "screen-256color"
set-option -g pane-active-border-style bg=colour235
# Length left
set-option -g status-left-length 90
set-option -g status-right-length 90
# Contents left
#set-option -g status-left '#H:[#P]'
set-option -g status-left 'tmux:[#P]'
# Contents right
set-option -g status-right "#(tmux show-options -g prefix) [%Y-%m-%d(%a) %H:%M]"
#if "type battery.sh" "set -g status-right '#(tmux show-options -g prefix) #(battery.sh -t) [%Y-%m-%d(%a) %H:%M]'"
#if "which battery.sh" "set -g status-right '#(which get_ssid.sh >/dev/null && get_ssid.sh) #(battery.sh) [%Y-%m-%d(%a) %H:%M]'"
#set-option -g status-right '#(which get_ssid.sh >/dev/null && get_ssid.sh) #(which battery.sh >/dev/null && battery.sh -c tmux) [%Y-%m-%d(%a) %H:%M]'
#set-option -g status-right '#(get_ssid) #(battery -c tmux) [%Y-%m-%d(%a) %H:%M]'
#set-option -g status-right '#[fg=white]#(wifi)#[default] #(battery -c tmux) [%Y-%m-%d(%a) %H:%M]'
set-option -g status-right '#[fg=white]#(wifi)#[default] #(battery --tmux) [%Y-%m-%d(%a) %H:%M]'
# Enable utf-8 on statusbar
#set-option -g status-utf8 on # unknown
# Reload statusbar
set-option -g status-interval 1
# Centerize
set-option -g status-justify centre
# Enable visual notification
set-window-option -g monitor-activity on
# Enable visual notification
set-option -g visual-activity on
# Enable statusbar top
set-option -g status-position top
# Default statusbar colors
set-option -g status-style bg=colour235,fg=colour136,default
set-option -g mouse on
set-option -g terminal-overrides 'xterm*:smcup@:rmcup@'