This repository has been archived by the owner on May 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.tmux.conf
106 lines (82 loc) · 4.13 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
101
102
103
104
105
106
set -g prefix M-Space
set -g default-shell /usr/bin/zsh
#behaviour
set -g default-terminal "tmux-256color"
setw -g xterm-keys on
set -s escape-time 10
set -sg repeat-time 600
set -s focus-events on
set -g set-clipboard on
set -q -g status-utf8 on
set -g mouse on
#set -g status off
set -g history-limit 100000
new-session -n $HOST
set -g renumber-windows on
set -g status-keys vi
#shotrcuts
bind -n C-a send-keys "_shko" \; send-keys "Enter" \;
bind -n C-s send-keys "s !!" \; send-keys "Enter" \;
#navigation
bind -n C-b split-window -h -c "#{pane_current_path}"
bind -n C-v split-window -v -c "#{pane_current_path}"
bind -n C-n new-window -c "#{pane_current_path}"
bind -n C-End next-window
bind -n C-Home previous-window
is_vim="ps -o state= -o comm= -t '#{pane_tty}' | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
bind -n C-left if-shell "$is_vim" "send-keys C-h" "select-pane -L"
bind -n C-down if-shell "$is_vim" "send-keys C-j" "select-pane -D"
bind -n C-up if-shell "$is_vim" "send-keys C-k" "select-pane -U"
bind -n C-right if-shell "$is_vim" "send-keys C-l" "select-pane -R"
# bind -n C-left run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
# bind -n C-down run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
# bind -n C-up run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
# bind -n C-right run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"
###################################THEME
#set -g window-style 'bg=colour233'
#set -g window-active-style 'bg=black'
# Status update interval
set -g status-interval 1
# Basic status bar colors
set -g status-fg colour231
set -g status-bg default
# Left side of status bar
set -g status-left-bg default
set -g status-left-fg default
set -g status-left-length 50
set -g status-left "#($HOME/.config/tmux/modules/STATUS LEFT) #(/home/bresilla/.config/tmux/modules/directory #{pane_current_path} 3) "
# set -g status-left "#($HOME/.config/tmux/modules/STATUS LEFT)"
# Right side of status bar
set -g status-right-bg default
set -g status-right-fg default
set -g status-right-length 50
set -g status-right "#($HOME/.config/tmux/modules/STATUS RIGHT) "
#""
# Window status
set -g window-status-current-bg default
set -g window-status-current-fg default
set -g window-status-format "#[fg=colour8,bg=default,bold] #(/home/bresilla/.config/tmux/modules/directory #{pane_current_path} 1) #[nobold,fg=default,bg=default]"
# set -g window-status-format "#[fg=colour0,bg=colour8] #(/home/bresilla/.config/tmux/modules/directory #{pane_current_path} 1) #[fg=colour1,bg=default]"
set -g window-status-current-format "#[fg=colour0,bg=colour7] #(/home/bresilla/.config/tmux/modules/directory #{pane_current_path} 1) #[fg=colour1,bg=default]"
# set -g window-status-current-format "#[fg=colour1,bg=default,nobold]#[fg=colour15,bg=colour1] "■" #[fg=colour1,bg=default]"
# set -g window-status-format "#[fg=colour59,bg=default,bold] #(/home/bresilla/.config/tmux/modules/directory #{pane_current_path} 1) #[nobold,fg=colour59,bg=default] "
# set -g window-status-current-format "#[fg=colour0,bg=colour1]#[fg=colour1,bg=default,nobold]#[fg=colour15,bg=colour1] #(/home/bresilla/.config/tmux/modules/directory #{pane_current_path} 1) #[fg=colour1,bg=default]"
# set -g pane-border-status bottom
# set -g pane-border-format '#(sh /home/bresilla/.config/tmux/modules/borderland --pane-current-path=#{pane_current_path} --pane-active=#{pane_active})'
# Window separator
set -g window-status-separator "#[fg=colour8,bg=default]#[fg=default,bg=default]"
# set -g window-status-separator ""
# Window status alignment
set -g status-justify centre
# Pane border
set -g pane-border-bg default
set -g pane-border-fg colour16
# Active pane border
set -g pane-active-border-bg default
set -g pane-active-border-fg colour16
# Message
set -g message-bg colour25
set -g message-fg white
# Command message
set -g message-command-bg colour25
set -g message-command-fg white