all repos

dotfiles @ 0c7a96b

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