-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
100 lines (78 loc) · 2.46 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
# .tmux.conf
# use C-a, since it's on the home row and easier to hit than C-b
unbind-key C-Space
set -g prefix C-Space
bind-key C-Space send-prefix
# use vim-like keys for splits and windows
bind-key v split-window -h
bind-key s split-window -v
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# easy config reload
bind-key r source-file ~/.tmux.conf \; display-message "Config has been successfully reloaded"
# make window numbers start at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# vi is good
setw -g mode-keys vi
# allows use of 256 colors
set -g default-terminal "xterm-256color"
set -ga terminal-overrides ",xterm-256color:Tc"
# renumber windows when a window is closed
set -g renumber-windows on
#status piece lengths
set -g status-left-length 32
set -g status-right-length 150
set -g status-interval 5
# set window title
set -g set-titles on
set -g set-titles-string '#h #S #I #W'
# Set window notifications
setw -g monitor-activity off # windows with activity have white bg highlight
set -g visual-activity off # don't display status line msg when activity occurs in another window
set -g automatic-rename off
set -g allow-rename off
# Allow the arrow key to be used immediately after changing windows
set -g repeat-time 0
# Messages show up longer
set -g display-time 1000
##################
# DESIGN CHANGES #
##################
# set color standards
tm_red="#fb4934"
tm_orange="#fe8019"
tm_yellow="#fabd2f"
tm_green="#b8bb26"
tm_bg0="#282828"
tm_bg1="#3c3836"
tm_bg2="#504945"
tm_bg3="#665c54"
tm_fg4="#a89984"
# status bar pieces
tm_host="#[bg=$tm_fg4,fg=$tm_bg0] #H "
tm_time="#[bg=$tm_bg1,fg=$tm_fg4] %I:%M %p "
tm_date="#[bg=$tm_bg1,fg=$tm_fg4] %F "
tm_battery="#(~/dotfiles/bin/battery)"
# statusbar colors
set -g status-style "fg=$tm_orange,bg=$tm_bg1"
# active window title colors
setw -g window-status-format "#[bg=$tm_bg1,fg=$tm_fg4] #I #W "
setw -g window-status-current-format "#[bg=$tm_fg4,fg=$tm_bg0] #I #[bg=$tm_bg2,fg=$tm_fg4] #W "
set -g window-status-separator ''
# pane border
set -g pane-border-style fg=$tm_bg3
set -g pane-active-border-style fg=$tm_orange
# message text
set -g message-style bg=$tm_bg1,fg=$tm_orange
# pane number display
set -g display-panes-active-colour $tm_orange
set -g display-panes-colour $tm_bg3
# clock
setw -g clock-mode-colour $tm_orange
setw -g clock-mode-style 12
# statusbar setup
set -g status-left ""
set -g status-right $tm_date|$tm_time$tm_battery$tm_host