-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.tmux.conf
66 lines (42 loc) · 1.59 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
#░▀█▀░█▄█░█░█░█░█
#░░█░░█░█░█░█░▄▀▄
#░░▀░░▀░▀░▀▀▀░▀░▀
# ------Source config file command:
bind r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded."
# ------Some tweaks to the status line:
set -g window-status-current-style "underscore"
set -g status on
set -g status-bg black
set -g status-fg black
set -g status-left '#[fg=cyan]#H '
set -g status-right '#[fg=colour246]#(cat /proc/loadavg | cut -d" " -f1-3 | sed "s/ /, /g") #[fg=yellow]#(cat /sys/class/power_supply/BAT0/capacity)% #[fg=green]#(date "+%b %d %H:%M")'
# ------Highlight active window:
set-window-option -g window-status-current-style bg=green
# ------Change the prefix key to C-a:
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# ------Turn the mouse on, but without copy mode dragging:
set -g mouse on
# ------Use Alt + vim keys to switch panes:
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
# ------Quick pane resizing:
bind -n M-H resize-pane -L 5
bind -n M-J resize-pane -D 5
bind -n M-K resize-pane -U 5
bind -n M-L resize-pane -R 5
# ------Shift arrow to switch windows:
bind -n S-Left previous-window
bind -n S-Right next-window
# ------Set easier window split keys:
bind v split-window -h
bind b split-window -v
# ------Kill actual pane with Alt + q:
bind -n M-q killp
# ------Change the default $TERM to tmux-256color:
set -g default-terminal "tmux-256color"
# ------Display bash prompt:
set-option -g default-command bash