all repos

dotfiles @ a70cb1b

i use rach linux btw

dotfiles/config/tmux/tmux.conf (view raw)

1
# vim: foldenable foldmethod=marker ts=2 sw=2 ft=tmux
2
# general {{{
3
set -g default-shell /bin/fish
4
set -g default-terminal "tmux-256color"
5
set -g extended-keys on
6
set -ag terminal-overrides ",xterm-kitty:Tc:U8=0,xterm*:extkeys"
7
set -g set-clipboard on
8
set -g allow-passthrough on
9
set -g detach-on-destroy off
10
set -ga terminal-overrides ",*256col*:Tc"
11
12
set -g renumber-windows on
13
set -g base-index 1
14
set -g pane-base-index 1
15
16
set -g mouse on
17
set -sg escape-time 0
18
set -g focus-events on
19
20
# fuck you bell
21
set -g visual-activity off
22
set -g visual-bell off
23
set -g visual-silence off
24
setw -g monitor-activity off
25
set -g bell-action none
26
# }}}
27
# keymaps {{{
28
unbind C-b
29
set -g prefix C-t
30
bind-key C-t send-prefix
31
32
## vim all the way
33
set-window-option -g mode-keys vi
34
bind-key -T copy-mode-vi 'v' send -X begin-selection
35
bind-key -T copy-mode-vi 'y' send -X copy-selection
36
unbind -T copy-mode-vi MouseDragEnd1Pane
37
38
bind R source-file ~/.config/tmux/tmux.conf \; display 'Reloaded tmux config'
39
bind Tab last-window
40
41
unbind c; bind t new-window -c "#{pane_current_path}";
42
unbind <; bind < swap-window -t -1;
43
unbind >; bind > swap-window -t +1;
44
unbind x; bind w kill-pane;
45
unbind f; bind f resize-pane -Z;
46
unbind s
47
bind O choose-tree;
48
unbind /; bind / copy-mode;
49
unbind '%'; bind n split-window -h -c "#{pane_current_path}";
50
unbind '"'; bind N split-window -v -c "#{pane_current_path}";
51
unbind '$'; bind r command-prompt -I "#S" "rename-session -- '%%'";
52
bind = resize-pane -U 5;
53
bind - resize-pane -D 5;
54
55
bind C-n new-session
56
57
bind -n M-1 select-window -t 1
58
bind -n M-2 select-window -t 2
59
bind -n M-3 select-window -t 3
60
bind -n M-4 select-window -t 4
61
bind -n M-5 select-window -t 5
62
bind -n M-6 select-window -t 6
63
bind -n M-7 select-window -t 7
64
bind -n M-8 select-window -t 8
65
bind -n M-9 select-window -t 9
66
67
bind h select-pane -L
68
bind j select-pane -D
69
bind k select-pane -U
70
bind l select-pane -R
71
bind -r H resize-pane -L 2
72
bind -r J resize-pane -D 2
73
bind -r K resize-pane -U 2
74
bind -r L resize-pane -R 2
75
# }}}
76
# appearance {{{
77
set -g mode-style "fg=#7aa2f7,bg=#16161e"
78
set -g message-style "fg=#7aa2f7,bg=#3b4261"
79
set -g message-command-style "fg=#7aa2f7,bg=#1a1b26"
80
set -g pane-border-style "fg=#3b4261"
81
set -g pane-active-border-style "fg=#7aa2f7"
82
set -g status-style "fg=#7aa2f7,bg=#1a1b26"
83
set -g window-status-current-style "fg=#7aa2f7"
84
set -g window-status-style "fg=#c0caf5"
85
86
set-option -g status-position top
87
set -g status-left-length 85
88
set -g status-left ' #[fg=#7aa2f7,bold]  #S#[fg=#a9b1d6,nobold] #{?client_prefix,█,|} #[default]'
89
set -g status-right ''
90
# }}}
91
# plugins {{{
92
set -g @plugin 'tmux-plugins/tpm'
93
set -g @plugin 'tmux-plugins/tmux-yank'
94
set -g @plugin 'olexsmir/tmux-stare'
95
96
set -g @stare-pick 'o'
97
set -g @stare-start 'pick'
98
99
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'"
100
run '~/.config/tmux/plugins/tpm/tpm'
101
# }}}