diff options
author | Yigit Sever | 2024-02-29 20:35:21 +0300 |
---|---|---|
committer | Yigit Sever | 2024-02-29 20:35:51 +0300 |
commit | a64ad4d8a448e9c7ff796b999cbd5d30bd67dbfb (patch) | |
tree | 563e91da46cc63252e107d226a93afd34b8387c2 /.config/tmux | |
parent | 88a154659ec8059aab850c35192cf4e228b87b26 (diff) | |
download | dotfiles-a64ad4d8a448e9c7ff796b999cbd5d30bd67dbfb.tar.gz dotfiles-a64ad4d8a448e9c7ff796b999cbd5d30bd67dbfb.tar.bz2 dotfiles-a64ad4d8a448e9c7ff796b999cbd5d30bd67dbfb.zip |
tmux: clean up home
Diffstat (limited to '.config/tmux')
-rw-r--r-- | .config/tmux/tmux.conf | 94 |
1 files changed, 94 insertions, 0 deletions
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf new file mode 100644 index 0000000..84638e0 --- /dev/null +++ b/.config/tmux/tmux.conf | |||
@@ -0,0 +1,94 @@ | |||
1 | # Make shift+arrows, ctrl+arrows etc work in Vim. | ||
2 | set -g xterm-keys on | ||
3 | |||
4 | # See if this fixes slow ESC issues. | ||
5 | # http://unix.stackexchange.com/questions/23138/esc-key-causes-a-small-delay-in-terminal-due-to-its-alt-behavior | ||
6 | set -s escape-time 0 | ||
7 | |||
8 | # Start numbering at 1 | ||
9 | set -g base-index 1 | ||
10 | set -g pane-base-index 1 | ||
11 | |||
12 | # Set status bar | ||
13 | set -g status-position bottom | ||
14 | set -g status-justify left | ||
15 | |||
16 | set -g status-style fg=white,bg=black,bold | ||
17 | |||
18 | set -g status-left "#S " | ||
19 | set -g status-right '#[fg=white,bg=black,bold] %d/%m #[fg=white,bg=black,bold] %H:%M @#H' | ||
20 | |||
21 | # higlight the active window in the status bar | ||
22 | set-window-option -g window-status-current-style bg=black,fg=white | ||
23 | |||
24 | setw -g window-status-current-style fg=red,bg=white,bold | ||
25 | setw -g window-status-current-format ' #I#[fg=red]:#[fg=black]#W#[fg=black]#F ' | ||
26 | |||
27 | setw -g window-status-style fg=white,bg=black,dim | ||
28 | setw -g window-status-format ' #I#[fg=cyan]:#[fg=white]#W#[fg=white]#F ' | ||
29 | |||
30 | # Don't prompt to kill panes/windows. | ||
31 | bind-key x kill-pane | ||
32 | bind-key & kill-window | ||
33 | |||
34 | # Cycle panes. | ||
35 | bind b select-pane -t :.+ | ||
36 | bind C-b select-pane -t :.+ | ||
37 | |||
38 | # More intuitive split-window mappings. | ||
39 | bind "'" split-window -h -c "#{pane_current_path}" | ||
40 | bind - split-window -v -c "#{pane_current_path}" | ||
41 | |||
42 | # Maximize pane, e.g. for copying. | ||
43 | bind-key z resize-pane -Z | ||
44 | |||
45 | # Use vim keybindings in copy mode | ||
46 | setw -g mode-keys vi | ||
47 | |||
48 | set -g set-titles on | ||
49 | set -g mouse on | ||
50 | |||
51 | # C-b is not acceptable -- Vim uses it | ||
52 | set-option -g prefix C-space | ||
53 | bind-key C-space last-window | ||
54 | |||
55 | # vim like navigation | ||
56 | bind h select-pane -L | ||
57 | bind j select-pane -D | ||
58 | bind k select-pane -U | ||
59 | bind l select-pane -R | ||
60 | |||
61 | # The panes | ||
62 | |||
63 | #set -g pane-border-bg colour235 | ||
64 | #set -g pane-border-fg colour238 | ||
65 | #set -g pane-active-border-bg colour236 | ||
66 | #set -g pane-active-border-fg colour51 | ||
67 | |||
68 | # panes | ||
69 | #set -g pane-border-fg black | ||
70 | #set -g pane-active-border-fg brightred | ||
71 | |||
72 | # Activity monitoring | ||
73 | setw -g monitor-activity on | ||
74 | set -g visual-activity on | ||
75 | |||
76 | # Example of using a shell command in the status line | ||
77 | #set -g status-right "#[fg=yellow]#(uptime | cut -d ',' -f 2-)" | ||
78 | |||
79 | set -g default-terminal "tmux-256color" | ||
80 | set-option -ga terminal-overrides ",xterm-kitty:Tc" | ||
81 | |||
82 | ############# | ||
83 | # plugins # | ||
84 | ############# | ||
85 | |||
86 | set -g @plugin 'tmux-plugins/tpm' | ||
87 | set -g @plugin 'tmux-plugins/tmux-yank' | ||
88 | set -g @plugin 'tmux-plugins/tmux-resurrect' | ||
89 | set -g @plugin 'tmux-plugins/tmux-continuum' | ||
90 | set -g @plugin 'laktak/extrakto' | ||
91 | |||
92 | set -g @sidebar-tree-command 'tree -C' | ||
93 | |||
94 | run -b '~/.local/share/tmux/plugins/tpm/tpm' | ||