-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathignu.tmux.conf
88 lines (69 loc) · 2.12 KB
/
ignu.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
# Nice colors
set -g default-terminal "screen-256color"
# Reload the config
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
# Autorename windows
set -g automatic-rename on
#
# Copy/Paste
set-option -g default-command "reattach-to-user-namespace -l zsh"
# Status bar content
set -g status-interval 5
set -g status-left '#S 🙉 '
set -g status-right '#[fg=colour166]#(w -h | grep -v `whoami` | cut -f 1 -d " " | uniq | tr "\\\n" " " ) #[fg=colour8]#(tmux-mem-cpu-net) #[fg=default]%l:%M %Z'
set -g status-right-length 100
# Status bar styling
set -g status-bg colour235 # very dark grey
set -g status-fg colour7 # light grey
set -g status-position top
set -g window-status-format "#[fg=colour7,bg=colour234] #W "
set -g window-status-current-format "#[fg=colour166,bg=colour234] #W#F"
# Show activity in other windows
set -g monitor-activity on
set -g window-status-activity-attr bold
# Messages
set -g display-time 3000
set -g message-bg colour166 # orange
set -g message-fg black
# Panes
set -g pane-border-fg colour8 # dark grey
set -g pane-active-border-fg colour7 # light grey
# Clock
set -g clock-mode-style 12
set -g clock-mode-colour colour166 # orange
# Mouse
set -g mouse on
set-option -g -q mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
bind -n WheelDownPane select-pane -t= \; send-keys -M
# VI Bindings
set -g mode-keys vi
#bind-key -t vi-copy 'v' begin-selection
#bind-key -t vi-copy 'y' copy-selection
# Pane Navigation
bind C-b select-pane -t :.+
bind -n S-up select-pane -t :.+
bind -n S-down select-pane -t :.-
# Tab Navigation
bind -n S-left prev
bind -n S-right next
bind -n C-S-left swap-window -t -1
bind -n C-S-right swap-window -t +1
# Resize current pane to 80 columns
bind 8 resize-pane -x 80
# copying and pasting
bind-key [ copy-mode
bind-key ] paste-buffer -s \015
#resizing
unbind J
bind J resize-pane -D 40
unbind K
bind K resize-pane -U 40
unbind j
bind j resize-pane -D 10
unbind k
bind k resize-pane -U 10
unbind b
bind b swap-pane -U
unbind ^B
bind ^B select-pane -t :.+