This repository has been archived by the owner on Oct 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmuxrc
85 lines (63 loc) · 2.19 KB
/
tmuxrc
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
source-file ~/dot/tmux/iceberg.tmux.conf
# from https://unix.stackexchange.com/questions/60968/tmux-bottom-bar-color-change
set -g default-terminal "screen-256color"
set-option -sa terminal-overrides "xterm-256color:RGB"
# set -g status-bg colour238
# set -g status-fg white
# set -g status-bg colour135
# set -g status-fg colour233
set -g mode-keys vi
set -g history-limit 10000
set-option -sg escape-time 10
set-option -g default-terminal "screen-256color"
# use | and - to split windows
bind-key \\ split-window -h -c '#{pane_current_path}'
bind-key - split-window -v -c '#{pane_current_path}'
unbind '"'
unbind %
# repeat last shell command on right pane (if it happens to be a shell)
bind-key u select-pane -t 1 \; send-keys C-c Up C-m \; last-pane
# Resizing (mouse also works).
unbind Left
bind -r Left resize-pane -L 5
unbind Right
bind -r Right resize-pane -R 5
unbind Down
bind -r Down resize-pane -D 5
unbind Up
bind -r Up resize-pane -U 5
# moving between windows with vim movement keys
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# y and p as in vim
bind Escape copy-mode
unbind p
bind p paste-buffer
# automatically renumber tmux windows
set -g renumber-windows on
# enable mouse support for switching panes/windows
setw -g mouse on
# thanks to https://github.com/nicknisi/dotfiles/blob/master/tmux/theme.sh
tm_color_active=colour15
tm_color_inactive=colour241
tm_color_feature=colour135
tm_color_music=colour248
tm_active_border_color=colour240
# separators
tm_separator_left_bold="◀"
tm_separator_left_thin="❮"
tm_separator_right_bold="▶"
tm_separator_right_thin="❯"
# pane number display
set-option -g display-panes-active-colour $tm_color_active
set-option -g display-panes-colour $tm_color_inactive
# disable temporarily for testing
# clock
# set-window-option -g clock-mode-colour $tm_color_active
# # cut 18 chars from current playing song
# tm_tunes="#[fg=$tm_color_music]#(osascript -l JavaScript ~/dot/tools/tunes.js | cut -c 1-18)"
# 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]#S"
# set -g status-left $tm_session_name' '
# set -g status-right $tm_tunes' '$tm_date' '$tm_host