chore(tmux): reorganize config
This commit is contained in:
@@ -1,36 +1,43 @@
|
|||||||
|
# server options
|
||||||
|
set -s escape-time 0
|
||||||
|
|
||||||
|
# terminal
|
||||||
set -g default-terminal "tmux-256color"
|
set -g default-terminal "tmux-256color"
|
||||||
set -ga terminal-overrides ",xterm-ghostty:RGB,xterm-256color:RGB"
|
set -ga terminal-overrides ",xterm-ghostty:RGB,xterm-256color:RGB"
|
||||||
set -ga terminal-features ",xterm-ghostty:clipboard,xterm-256color:clipboard"
|
set -ga terminal-features ",xterm-ghostty:clipboard,xterm-256color:clipboard"
|
||||||
|
|
||||||
set -g set-clipboard on
|
set -g set-clipboard on
|
||||||
|
|
||||||
set -s escape-time 0
|
# general
|
||||||
|
set -g prefix C-s
|
||||||
|
set -g base-index 1
|
||||||
|
set -g focus-events on
|
||||||
set -g update-environment "SSH_AUTH_SOCK SSH_CONNECTION SSH_TTY DISPLAY"
|
set -g update-environment "SSH_AUTH_SOCK SSH_CONNECTION SSH_TTY DISPLAY"
|
||||||
|
|
||||||
unbind C-b
|
# status bar
|
||||||
set -g prefix C-s
|
|
||||||
|
|
||||||
bind r source-file "$XDG_CONFIG_HOME/tmux/tmux.conf"
|
|
||||||
set -g base-index 1
|
|
||||||
set -g pane-base-index 1
|
|
||||||
set -g renumber-windows on
|
|
||||||
set -g focus-events on
|
|
||||||
|
|
||||||
set -g status-style 'bg=default fg=default'
|
set -g status-style 'bg=default fg=default'
|
||||||
set -g status-left-length 20
|
set -g status-left-length 20
|
||||||
|
|
||||||
|
# window options
|
||||||
set -wg mode-keys vi
|
set -wg mode-keys vi
|
||||||
|
set -g pane-base-index 1
|
||||||
|
set -g renumber-windows on
|
||||||
|
|
||||||
|
# prefix
|
||||||
|
unbind C-b
|
||||||
|
|
||||||
|
# copy mode
|
||||||
bind -T copy-mode-vi v send-keys -X begin-selection
|
bind -T copy-mode-vi v send-keys -X begin-selection
|
||||||
|
|
||||||
|
# navigation
|
||||||
# vim-like pane switching
|
|
||||||
bind ^ last-window
|
bind ^ last-window
|
||||||
bind k select-pane -U
|
bind k select-pane -U
|
||||||
bind j select-pane -D
|
bind j select-pane -D
|
||||||
bind h select-pane -L
|
bind h select-pane -L
|
||||||
bind l select-pane -R
|
bind l select-pane -R
|
||||||
|
|
||||||
|
# reload
|
||||||
|
bind r source-file "$XDG_CONFIG_HOME/tmux/tmux.conf"
|
||||||
|
|
||||||
# sessionizer
|
# sessionizer
|
||||||
bind f run-shell "tmux neww ~/.config/tmux/tmux-sessionizer"
|
bind f run-shell "tmux neww ~/.config/tmux/tmux-sessionizer"
|
||||||
bind R run-shell "tmux neww ~/.config/tmux/tmux-sessionizer ~"
|
bind R run-shell "tmux neww ~/.config/tmux/tmux-sessionizer ~"
|
||||||
|
|||||||
Reference in New Issue
Block a user