-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
48 lines (38 loc) · 1.37 KB
/
.tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# tmux configuration
set -g default-terminal tmux-256color
# set -g default-terminal "screen-256color"
# set -ga terminal-overrides ",alacritty:RGB"
# set -ga terminal-overrides ",xterm-256color*:Tc"
set -s escape-time 0
set -g focus-events on
set -g mouse on
set -g base-index 1
set -g pane-base-index 1
# set prefix key to C-a
bind-key C-a send-prefix
# sessions
bind S command-prompt -p "New Session:" "new-session -A -s '%%'"
bind K confirm kill-session
# reload config
bind R source-file ~/.tmux.conf \; display "Config reloaded"
# copy mode
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
# vim-like pane switching
bind -r . last-window
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
# resizing pane
bind -r C-k resize-pane -U 5
bind -r C-j resize-pane -D 5
bind -r C-h resize-pane -L 5
bind -r C-l resize-pane -R 5
# available plugins: battery, cpu-usage, git, gpu-usage, ram-usage, tmux-ram-usage, network, network-bandwidth, network-ping, ssh-session, attached-clients, network-vpn, weather, time, mpc, spotify-tui, kubernetes-context, synchronize-panes
set -g @kanagawa-plugins "ssh-session"
# plugins
set -g @plugin 'Nybkox/tmux-kanagawa'
set -g @plugin 'tmux-plugins/tpm'
set -g @suspend_key 'F1'
run '~/.tmux/plugins/tpm/tpm'