-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
98 lines (72 loc) · 2.39 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
# Use default shell
# set-option -g default-shell $SHELL
# Enable 256 Colors
set -g default-terminal "screen-256color"
# Remap prefix to C-a
set -g prefix C-Space
bind-key -n C-, send-prefix
# Have vim keybindings
set-window-option -g mode-keys vi
# Start window numbering from 1
set -g base-index 1
# from: https://gist.github.com/spicycode/1229612
bind-key C-j resize-pane -D 5
bind-key C-k resize-pane -U 5
bind-key C-h resize-pane -L 10
bind-key C-l resize-pane -R 10
# Set the window switching to vim keybindings
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Split windows like vim
bind-key v split-window -h -c "#{pane_current_path}"
bind-key V split-window -v -c "#{pane_current_path}"
# Open new window in same directory
bind-key c new-window -c "#{pane_current_path}"
set -g mouse on
set -sg escape-time 0
set-window-option -g allow-rename off
set-option -g renumber-windows on
# set -g status-right-length '100'
# set -g status-right "#{battery_percentage} | %m/%d | %H:%M "
# Basic status bar colors
set -g status-style bg=default,fg=red
# Left side of status bar
set -g status-left-style bg=default,fg=green
set -g status-left-length 40
set -g status-left "#S #[fg=white]» "#[fg=yellow]#I #[fg=cyan]#P"
# Right side of status bar
set -g status-right-style bg=default,fg=cyan
set -g status-right-length 40
set -g status-right "#{battery_should_charge} #{battery_percentage} #[fg=white]« #[fg=green]%m/%d #[fg=yellow]%H:%M"
# Window status
set -g window-status-format " #I:#W#F "
set -g window-status-current-format " #I:#W#F "
# Current window status
set -g window-status-current-style bg=red,fg=black
# Window with activity status
set -g window-status-activity-style bg=black,fg=yellow
# Window separator
set -g window-status-separator ""
# Window status alignment
set -g status-justify left
# Pane border
set -g pane-border-style bg=default,fg=default
# Active pane border
# set -g pane-active-border-style bg=default,fg=green
# Pane number indicator
set -g display-panes-colour default
set -g display-panes-active-colour default
# Clock mode
set -g clock-mode-colour red
set -g clock-mode-style 24
# Message
set -g message-style bg=default,fg=default
# Command message
set -g message-command-style bg=default,fg=default
# Mode
set -g mode-style bg=red,fg=default
# Plugins
set -g @plugin 'rbharadwaj9/tmux-battery'
run -b '~/.tmux/plugins/tpm/tpm'