From e89375cf15bd05031c38db96626251ab79aa932f Mon Sep 17 00:00:00 2001 From: Thek4n Date: Mon, 27 Nov 2023 11:05:40 +0300 Subject: [PATCH] mapping(tmux) --- home/user/.tmux.conf | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/home/user/.tmux.conf b/home/user/.tmux.conf index 9a09442..96c78b8 100644 --- a/home/user/.tmux.conf +++ b/home/user/.tmux.conf @@ -1,17 +1,18 @@ +set -g prefix C-b + # pane navigation -bind -r h select-pane -L # move left -bind -r j select-pane -D # move down -bind -r k select-pane -U # move up -bind -r l select-pane -R # move right +bind -r C-h select-pane -L # move left +bind -r C-j select-pane -D # move down +bind -r C-k select-pane -U # move up +bind -r C-l select-pane -R # move right bind | split-window -h -c "#{pane_current_path}" bind _ split-window -v -c "#{pane_current_path}" -set -g prefix C-b +set-option -g status off set -g status-bg black set -g status-fg white -set-option -g status off set -g mouse on set-option -g repeat-time 0 @@ -27,22 +28,19 @@ set -g renumber-windows on ## Make windows auto renumber set -g lock-command vlock ## Reload tmux.conf: R -bind R source-file ~/.tmux.conf \; display-message "Config reloaded..." +bind C-r source-file ~/.tmux.conf \; display-message "Config reloaded..." ## Lock screen -bind-key -T prefix X confirm-before -p "lock tmux? (y/n)" lock-session +bind-key -T prefix C-x confirm-before -p "lock tmux? (y/n)" lock-session -bind-key v copy-mod +bind-key C-v copy-mod setw -g mode-keys vi -bind P paste-buffer +bind C-p paste-buffer bind-key -T copy-mode-vi v send-keys -X begin-selection bind-key -T copy-mode-vi c send-keys -X clear-selection bind-key -T copy-mode-vi y send-keys -X copy-selection bind-key -T copy-mode-vi V send-keys -X rectangle-toggle -bind-key S-h swap-window -t -1 -bind-key S-l swap-window -t +1 - set -g set-titles on set -g set-titles-string '#S:#I.#P #W'