summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorYigit Sever2024-02-29 20:35:21 +0300
committerYigit Sever2024-02-29 20:35:51 +0300
commita64ad4d8a448e9c7ff796b999cbd5d30bd67dbfb (patch)
tree563e91da46cc63252e107d226a93afd34b8387c2 /.config
parent88a154659ec8059aab850c35192cf4e228b87b26 (diff)
downloaddotfiles-a64ad4d8a448e9c7ff796b999cbd5d30bd67dbfb.tar.gz
dotfiles-a64ad4d8a448e9c7ff796b999cbd5d30bd67dbfb.tar.bz2
dotfiles-a64ad4d8a448e9c7ff796b999cbd5d30bd67dbfb.zip
tmux: clean up home
diffstat (limited to '.config')
-rw-r--r--.config/tmux/tmux.conf94
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.
2set -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
6set -s escape-time 0
7
8# Start numbering at 1
9set -g base-index 1
10set -g pane-base-index 1
11
12# Set status bar
13set -g status-position bottom
14set -g status-justify left
15
16set -g status-style fg=white,bg=black,bold
17
18set -g status-left "#S "
19set -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
22set-window-option -g window-status-current-style bg=black,fg=white
23
24setw -g window-status-current-style fg=red,bg=white,bold
25setw -g window-status-current-format ' #I#[fg=red]:#[fg=black]#W#[fg=black]#F '
26
27setw -g window-status-style fg=white,bg=black,dim
28setw -g window-status-format ' #I#[fg=cyan]:#[fg=white]#W#[fg=white]#F '
29
30# Don't prompt to kill panes/windows.
31bind-key x kill-pane
32bind-key & kill-window
33
34# Cycle panes.
35bind b select-pane -t :.+
36bind C-b select-pane -t :.+
37
38# More intuitive split-window mappings.
39bind "'" split-window -h -c "#{pane_current_path}"
40bind - split-window -v -c "#{pane_current_path}"
41
42# Maximize pane, e.g. for copying.
43bind-key z resize-pane -Z
44
45# Use vim keybindings in copy mode
46setw -g mode-keys vi
47
48set -g set-titles on
49set -g mouse on
50
51# C-b is not acceptable -- Vim uses it
52set-option -g prefix C-space
53bind-key C-space last-window
54
55# vim like navigation
56bind h select-pane -L
57bind j select-pane -D
58bind k select-pane -U
59bind 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
73setw -g monitor-activity on
74set -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
79set -g default-terminal "tmux-256color"
80set-option -ga terminal-overrides ",xterm-kitty:Tc"
81
82#############
83# plugins #
84#############
85
86set -g @plugin 'tmux-plugins/tpm'
87set -g @plugin 'tmux-plugins/tmux-yank'
88set -g @plugin 'tmux-plugins/tmux-resurrect'
89set -g @plugin 'tmux-plugins/tmux-continuum'
90set -g @plugin 'laktak/extrakto'
91
92set -g @sidebar-tree-command 'tree -C'
93
94run -b '~/.local/share/tmux/plugins/tpm/tpm'