-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
130 lines (103 loc) · 3.64 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
###########################################################
#
# CUSTOMIZE STATUS BAR
#
############################################################
## Set the status line's colors
#set -g status-style fg=white,bold,bg=black
#
## Set the color of the window list
#setw -g window-status-style fg=cyan,bg=black
#
## Set colors for the active window
#setw -g window-status-current-style fg=white,bold,bg=cyan
#
## Customize command line(default)
#set -g message-style fg=black,bg=yellow
#
## Status line left side to show Session:window:pane
#set -g status-left-length 40
#set -g status-left "#[fg=green] #S #[fg=yellow] #I #[fg=cyan] #P"
#
## Status line right side - DD-MMM HH:MM
#set -g status-right "#[fg=cyan]%d %b %R"
#
## Update the status line every sixty seconds
#set -g status-interval 60
#
## Center the window list in the status line
#set -g status-justify centre
#
set -g status on
set -g status-interval 1
set -g status-justify centre
set -g status-keys vi
set -g status-position top # [top, bottom]
set -g status-style fg=colour136,bg=colour235
# solarized theme
#set -g status-style fg=colour136,bg="#002b36"
# Left status
set -g status-left-length 60
set -g status-left-style default
# Display the session name
set -g status-left "#[fg=green] ❐ #S #[default]"
# Display the os version (OSX)
set -ag status-left " #[fg=black] #[fg=green,bright] #(sw_vers -productVersion) #[default]"
# Display machine uptime
#set -ag status-left " #[fg=red,dim,bg=default] #(uptime | cut -f 4-5 -d ' ' | cut -f 1 -d ',') #[default]"
# Display battery percentage
#set -ag status-left "#[fg=green,bg=default,bright] #(echo $(pmset -g batt) | grep -o '[0-9]*'%) #[default]"
# Use python2 to support older macs
set -ag status-left "#[fg=blue,bg=default,bright] 🔋 #(pmset -g batt | python2 -c 'import sys; sys.stdin.readline(); print sys.stdin.readline().split()[2][:3]') #[default]"
# Right status
set -g status-right-length 140
set -g status-right-style default
# Display the cpu load
set -g status-right "#[fg=green,bg=default,bright] #(top -l 1 | grep -E "^CPU" | sed 's/.*://') #[default]"
# Display the date
set -ag status-right "#[fg=white,bg=default] %a %d #[default]"
# Display the time
set -ag status-right "#[fg=colour172,bright,bg=default] ⌚︎%l:%M %p #[default]"
set -ag status-right "#[fg=cyan,bg=default] ☠ #H #[default]"
set -g window-status-style fg=colour244,bg=default
set -g window-status-format ' #I #W '
set -g window-status-current-style fg=black,bg=colour136
set -g window-status-current-format ' #I #W '
############################################################
#
# CUSTOMIZE ACTIVE PANE
#
############################################################
# Colors for pane borders(default)
setw -g pane-border-style fg=green,bg=black
setw -g pane-active-border-style fg=white,bg=black
# Active pane normal, other shaded out
setw -g window-style fg=colour240,bg=colour235
setw -g window-active-style fg=white,bg=black
############################################################
#
# MISC
#
############################################################
## enable activity alerts
setw -g monitor-activity on
set -g visual-activity on
# Set mouse mode on
set -g mouse on
# clear the current pane
#bind -n C-k send-keys -R \; send-keys C-l \;
# Clear history like iterm/terminal
bind -n C-k clear-history
# Larger scroll back
set-option -g history-limit 100000
# loud or quiet?
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-option -g bell-action none
# Moving things around
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R