-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf.old
129 lines (102 loc) · 3.53 KB
/
.tmux.conf.old
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
# General tmux settings
# This setting fits Tmux version before 2.6 not included
# Tmux has changed its key binding syntax
# For old systems. Created by Alexander Liu
#set-option -g default-shell /bin/bash
set -g default-terminal "screen-256color"
# Automatically set window title
setw -g automatic-rename
##################################
# Status bar
##################################
#set -g status-utf8 on
#set -g status-bg blue
#set -g status-fg white
#set -g status-left '#[fg=green]#H'
#set -g status-right '#[fg=yellow]#(uptime | cut -d "," -f 2-)'
# Highlight active window
#set-window-option -g window-status-current-bg red
# Activity Monitoring
setw -g monitor-activity on
set -g visual-activity on
#set-option -g mouse-select-pane on
##################################
# Information in this session
##################################
# Some decorates from https://github.com/nicknisi/dotfiles/blob/master/tmux/theme.sh
#### COLOUR
tm_icon="☀"
#tm_icon="👤"
#tm_color_active=colour82
tm_color_active=colour226
#tm_color_inactive=colour241
tm_color_inactive=colour178
tm_color_feature=colour10
tm_color_music=colour10
tm_active_border_color=colour10
# separators
tm_separator_left_bold="◀"
tm_separator_left_thin="❮"
tm_separator_right_bold="▶"
tm_separator_right_thin="❯"
set -g status-left-length 32
set -g status-right-length 150
set -g status-interval 5
# default statusbar colors
# Color table from https://upload.wikimedia.org/wikipedia/en/1/15/Xterm_256color_chart.svg
# set-option -g status-bg colour0
set-option -g status-fg $tm_color_active
#set-option -g status-bg default
#set-option -g status-bg colour29
set-option -g status-bg colour18
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg $tm_color_inactive
set-window-option -g window-status-bg default
set -g window-status-format "#I #W"
# active window title colors
set-window-option -g window-status-current-fg $tm_color_active
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-format "#[bold]#I #W"
# pane border
set-option -g pane-border-fg $tm_color_inactive
set-option -g pane-active-border-fg $tm_active_border_color
# message text
set-option -g message-bg default
set-option -g message-fg $tm_color_active
# pane number display
set-option -g display-panes-active-colour $tm_color_active
set-option -g display-panes-colour $tm_color_inactive
# clock
set-window-option -g clock-mode-colour $tm_color_active
# tm_spotify="#[fg=$tm_color_music]#(osascript ~/.dotfiles/applescripts/spotify.scpt)"
# tm_itunes="#[fg=$tm_color_music]#(osascript ~/.dotfiles/applescripts/itunes.scpt)"
# tm_rdio="#[fg=$tm_color_music]#(osascript ~/.dotfiles/applescripts/rdio.scpt)"
# tm_battery="#(~/.dotfiles/bin/battery_indicator.sh)"
tm_date="#[fg=$tm_color_inactive] %R %d %b"
tm_host="#[fg=$tm_color_feature,bold]#h"
tm_session_name="#[fg=$tm_color_feature,bold]$tm_icon #S"
set -g status-left $tm_session_name' '
set -g status-right $tm_itunes' '$tm_date' '$tm_host
##################################
# Key bindings
##################################
# Vim bindings for Tmux
set-window-option -g mode-keys vi
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
bind -t vi-copy 'C-[' cancel
#unbind [
#bind Escape copy-mode
#unbind p
#bind p paste-buffer
# pane movement shortcuts
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# pane resizing shortcuts
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5