-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtmux.conf
80 lines (72 loc) · 2.89 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
# set-option -sg escape-time 0
setw -g xterm-keys on
set -s escape-time 10 # faster command sequences
set -sg repeat-time 600 # increase repeat timeout
set -s focus-events on
set -g prefix2 C-a # GNU-Screen compatible prefix
bind C-a send-prefix -2
bind - split-window -v
# split current window vertically
bind _ split-window -h
# pane navigation
bind -r h select-pane -L # move left
bind -r j select-pane -D # move down
bind -r k select-pane -U # move up
bind -r l select-pane -R # move right
bind > swap-pane -D # swap current pane with the next one
bind < swap-pane -U # swap current pane with the previous one
# maximize current pane
bind + run 'cut -c3- ~/.tmux.conf | sh -s _maximize_pane "#{session_name}" #D'
# pane resizing
bind -r H resize-pane -L 2
bind -r J resize-pane -D 2
bind -r K resize-pane -U 2
bind -r L resize-pane -R 2
# set -g status-right-bg default
# set -g status-right-fg white
# set -g status-left-bg default
# set -g status-left ' #{?client_prefix,#[reverse]<Prefix>#[noreverse] ,}"#{=21:pane_title}" %H:%M %d-%b-%y'
set -g status-right ' #{?client_prefix,💭#[noreverse] ,}'
# # ⌨
set -g mouse on
set -g default-terminal 'screen-256color'
set -ga terminal-overrides ',screen-256color:Tc'
set-option -g history-limit 100000
set-option -g status off
bind-key -n S-Up set-option -g status
bind-key -n S-Down set-option -g status
bind-key -n S-Left previous-window
bind-key -n S-Right next-window
set-option -g status-fg white
set-option -g status-bg default
set-option -g status-attr default
set-window-option -g window-status-fg default
## sets the colors of copy mode indicator
set-window-option -g mode-style 'fg=white bg=#212121'
set-window-option -g window-status-bg default
set-window-option -g window-status-attr default
set-window-option -g window-status-current-fg magenta
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr default
set-option -g message-fg white
set-option -g message-bg default
set-option -g message-attr bright
set-option -g status-left-fg white
set -g status-left-length 32
#set -g status-left "🍭"
set -g status-left ""
# set -g status-left '%H:%M ⚡️ #{battery_percentage}'
# set -g status-left '🔋 #{battery_percentage}'
set -g status-justify right
setw -g window-status-format '#W'
setw -g window-status-current-format '#W'
# setw -g window-status-format ' #(echo "#{pane_current_command}") '
# setw -g window-status-current-format ' #(echo "#{pane_current_command}") '
# set -g status-right " "
run-shell ~/tmux-better-mouse-mode/scroll_copy_mode.tmux
set -g @scroll-speed-num-lines-per-scroll "0.5"
set -g -a terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q'
set-option -s set-clipboard on
bind c new-window -c "#{pane_current_path}"
bind-key r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
run-shell ~/clone/pat/battery.tmux