-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
91 lines (65 loc) · 2.23 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
set-option -g default-shell /bin/zsh
# set scroll history to 100,000 lines
set-option -g history-limit 1000000
# 0 is too far from
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
# modern colors
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",alacritty:Tc"
# unbind the prefix and bind it to Ctrl-s (not ^a since that is main tmux)
unbind C-b
set -g prefix C-s
bind C-s send-prefix
# Avoid ESC delay
set -s escape-time 0
# Fix titlebar
set -g set-titles on
set -g set-titles-string "#T"
# VIM mode
set -g mode-keys vi
# Mouse friendly
#set -g mouse on
# Copy mode (from jonhoo)
# copy to X clipboard
bind -T copy-mode-vi "v" send -X begin-selection
bind -T copy-mode-vi "y" send-keys -X copy-pipe 'xclip -in -selection clipboard &> /dev/null'
bind -T copy-mode-vi "Enter" send-keys -X cancel
# shortcut for moving tmux buffer to clipboard
# useful if you've selected with the mouse
bind-key -nr C-y run "tmux show-buffer | xclip -in -selection clipboard &> /dev/null"
# Move between panes with vi keys
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
######################
### DESIGN CHANGES ###
######################
# Colors (gruvbox dark base16)
# default statusbar colors
# but a shade darker to show remote
set-option -g status-style "fg=#bdae93,bg=#1c1816"
# default window title colors
set-window-option -g window-status-style "fg=#bdae93,bg=default"
# active window title colors
set-window-option -g window-status-current-style "fg=#fabd2f,bg=default"
# pane border
set-option -g pane-border-style "fg=#3c3836"
set-option -g pane-active-border-style "fg=#504945"
# message text
set-option -g message-style "fg=#d5c4a1,bg=#3c3836"
# pane number display
set-option -g display-panes-active-colour "#b8bb26"
set-option -g display-panes-colour "#fabd2f"
# clock
set-window-option -g clock-mode-colour "#b8bb26"
# copy mode highligh
set-window-option -g mode-style "fg=#bdae93,bg=#504945"
# bell
set-window-option -g window-status-bell-style "fg=#3c3836,bg=#fb4934"
# Avoid date/time taking up space
#set -g status-right '#[fg=green][#[fg=white]%m-%d %H:%M#[fg=green]]'
set -g status-right "#(whoami)@#(hostname)"