all repos

dotfiles @ efa0d02

my dotfiles

config/tmux/tmux.conf (view raw)

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
# vim: foldenable foldmethod=marker ts=2 sw=2 ft=tmux
# general {{{
set -g default-shell /bin/fish
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-kitty:Tc,xterm-kitty:U8=0"
set -g set-clipboard on
set -g allow-passthrough on
set -g detach-on-destroy off
set -ga terminal-overrides ",*256col*:Tc"

set -g renumber-windows on
set -g base-index 1
set -g pane-base-index 1

set -g mouse on
set -sg escape-time 0
set -g focus-events on

# fuck you bell
set -g visual-activity off
set -g visual-bell off
set -g visual-silence off
setw -g monitor-activity off
set -g bell-action none
# }}}
# keymaps {{{
unbind C-b
set -g prefix C-t
bind-key C-t send-prefix

## vim all the way
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection
unbind -T copy-mode-vi MouseDragEnd1Pane

bind R source-file ~/.config/tmux/tmux.conf \; display 'Reloaded tmux config'
bind Tab last-window

unbind c; bind t new-window -c "#{pane_current_path}";
unbind <; bind < swap-window -t -1;
unbind >; bind > swap-window -t +1;
unbind x; bind w kill-pane;
unbind f; bind f resize-pane -Z;
unbind s
bind O choose-tree;
unbind /; bind / copy-mode;
unbind '%'; bind n split-window -h -c "#{pane_current_path}";
unbind '"'; bind N split-window -v -c "#{pane_current_path}";
unbind '$'; bind r command-prompt -I "#S" "rename-session -- '%%'";
bind = resize-pane -U 5;
bind - resize-pane -D 5;

bind C-n new-session

bind -n M-1 select-window -t 1
bind -n M-2 select-window -t 2
bind -n M-3 select-window -t 3
bind -n M-4 select-window -t 4
bind -n M-5 select-window -t 5
bind -n M-6 select-window -t 6
bind -n M-7 select-window -t 7
bind -n M-8 select-window -t 8
bind -n M-9 select-window -t 9

bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
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
# }}}
# appearance {{{
set -g mode-style "fg=#7aa2f7,bg=#16161e"
set -g message-style "fg=#7aa2f7,bg=#3b4261"
set -g message-command-style "fg=#7aa2f7,bg=#1a1b26"
set -g pane-border-style "fg=#3b4261"
set -g pane-active-border-style "fg=#7aa2f7"
set -g status-style "fg=#7aa2f7,bg=#1a1b26"
set -g window-status-current-style "fg=#7aa2f7"
set -g window-status-style "fg=#c0caf5"

set-option -g status-position top
set -g status-left-length 85
set -g status-left ' #[fg=#7aa2f7,bold]  #S#[fg=#a9b1d6,nobold] #{?client_prefix,█,|} #[default]'
set -g status-right ''
# }}}
# plugins {{{
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'olexsmir/tmux-stare'

set -g @stare-pick 'o'

if "test ! -d ~/.config/tmux/plugins/tpm" "run 'git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm && ~/.config/tmux/plugins/tpm/bin/install_plugins'"
run '~/.config/tmux/plugins/tpm/tpm'
# }}}