all repos

dotfiles @ 328de0d65a59636be45857f47e54494014eba82d

i use rach linux btw

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

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