summaryrefslogtreecommitdiffstats
path: root/tmux/tmux.conf
blob: 879bd1b258a4668ffe1db348a9729ca01f7f92b0 (plain) (blame)
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
107
108
109
110
# Opciones basicas
set -gs default-terminal "tmux-256color" # Optional
set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
set -g set-titles-string   "#S > #{=-15:?window_name,#{window_name},#{s/ghoul/home/:?pane_current_path,#{b:pane_current_path},}} (#T)"
set -g mode-keys            vi
set -g history-limit        102400
set -sg escape-time         0
set -g set-clipboard        on
set -g mouse                on
set -gq utf8                on
set -gq status-utf8         on
set -wg wrap-search         off
set -g focus-events         on

# Ventanas
set -wg automatic-rename    on
set -g renumber-windows     on
set -g allow-rename         on
set -g base-index           1

# Panes
set -g pane-base-index      1
set -g aggressive-resize    on
set -wg main-pane-width     80

# Notificaciones
set -g monitor-activity     on
set -g bell-action          none

# Statusbar
set -g set-titles                   on
set -g pane-border-status           top
set -g status-position              top
set -g pane-border-style            bg=default,fg=colour0
set -g pane-active-border-style     bg=default,fg=colour0
set -g mode-style                   fg=colour0,bg=colour100
set -g message-command-style        bg=colour0,fg=colour13
set -g message-style                bg=default,fg=colour7
set -g status-style                 bg=green,fg=black
set -g status-left                  ''
set -g status-left-length           140
set -g status-justify               left
set -g status-right                 '#{online_status} %F %R '
set -g window-status-separator      ''
set -g window-status-style          bg=colour0,fg=colour243
set -g window-status-current-style  bg=default,fg=default
set -g window-status-activity-style bg=colour0,fg=colour11
set -g window-status-format         ' #W#F '
set -g window-status-current-format ' #W#F '

# Limpiar atajos
unbind-key C-b
unbind-key '"'
unbind-key %
unbind-key -
unbind-key Up
unbind-key Down
unbind-key Left
unbind-key Right

# Prefijo
set -g prefix M-a
bind a send-prefix

# Varios
bind-key M     command-prompt -p man: "split-window -fh 'man %1'"
bind-key R     source-file    $HOME/.tmux.conf \; display "Config Reloaded"

# Dividir
bind-key |     split-window  -h -c "#{pane_current_path}"
bind-key -     split-window  -v -c "#{pane_current_path}"
bind-key /     split-window  -fh -c "#{pane_current_path}"
bind-key _     split-window  -fv -c "#{pane_current_path}"

# Cerrar
bind-key x     kill-pane
bind-key X     kill-window
bind-key Z     kill-session
bind-key %     delete-buffer

# Paneles
bind-key (     swap-pane -s :. -t :.- \; select-pane -t :.-
bind-key )     swap-pane -s :. -t :.+ \; select-pane -t :.+
bind-key Up    select-pane -U
bind-key Down  select-pane -D
bind-key Left  select-pane -L
bind-key Right select-pane -R

# Ventanas
bind-key <     previous-window
bind-key >     next-window
bind-key [     swap-window -t :-1 -d
bind-key ]     swap-window -t :+1 -d
bind-key Enter new-window
bind-key w     choose-tree -Zw "swap-window -t '%%'"
bind-key p     choose-tree -Zw "swap-pane -t '%%'"

# Copy/paste. Seleccionar texto con el mouse lo copia automaticamente al clipboard
bind-key b     list-buffers
bind-key B     choose-buffer
bind-key P     capture-pane -S -32768 \; save-buffer "/tmp/printscreen" \; delete-buffer \; new-window -n "PRINTSCREEN" "$EDITOR /tmp/printscreen"
bind-key -T    copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard"
bind-key Tab capture-pane \; save-buffer /tmp/tmux-buffer \; delete-buffer \; display-popup -w 80% -h 60% -E "~/.local/bin/fzf_speed/fzf-speed"
bind-key v capture-pane \; save-buffer /tmp/tmux-buffer \; delete-buffer \; display-popup -w 80% -h 60% -E "cmixer"

set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-online-status'

run -b '~/.config/tmux/plugins/tpm/tpm'
# vim: set ft=tmux:
Un proyecto texto-plano.xyz