From fbe838a2a905fc073ccde0d94fa296738fbf12bd Mon Sep 17 00:00:00 2001 From: thek4n Date: Wed, 27 Mar 2024 02:01:00 +0300 Subject: [PATCH] tmux config --- home/user/.config/tmux/mappings.conf | 14 +++++++------- home/user/.config/tmux/options.conf | 3 --- home/user/.config/tmux/style.conf | 2 +- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/home/user/.config/tmux/mappings.conf b/home/user/.config/tmux/mappings.conf index e4c2195..beb6a78 100644 --- a/home/user/.config/tmux/mappings.conf +++ b/home/user/.config/tmux/mappings.conf @@ -2,7 +2,6 @@ set -g prefix C-b - # Zoom pane bind -n M-f resize-pane -Z @@ -12,7 +11,6 @@ bind -n M-l select-pane -R bind -n M-j select-pane -D bind -n M-k select-pane -U - # Windows navigation bind -n C-M-h previous-window bind -n C-M-l next-window @@ -38,22 +36,24 @@ bind \\ split-window -v -c "#{pane_current_path}" # Copy mode setw -g mode-keys vi -bind-key C-v copy-mod +bind-key v copy-mode bind 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 -T copy-mode-vi C-v send-keys -X rectangle-toggle +bind-key -T copy-mode-vi Escape send-keys -X cancel +bind-key -T copy-mode-vi C-c send-keys -X cancel +bind-key -T copy-mode-vi q send-keys -X cancel # Lock screen -bind-key -T prefix C-x confirm-before -p "lock tmux? (y/n)" lock-session - +bind-key -T prefix l confirm-before -p "lock tmux? (y/n)" lock-session # Reload config bind r source-file ~/.config/tmux/tmux.conf \; display-message "Config reloaded..." - # Session managment bind 1 source-file ~/.tmux/01.conf bind 2 source-file ~/.tmux/02.conf diff --git a/home/user/.config/tmux/options.conf b/home/user/.config/tmux/options.conf index 5a6ce8c..4bf7d61 100644 --- a/home/user/.config/tmux/options.conf +++ b/home/user/.config/tmux/options.conf @@ -1,9 +1,7 @@ # vim: ft=tmux -set -s exit-empty off # Server will not exit if no active sessions set -s exit-unattached off # Server will not exit if no attached clients - set -g mouse on # Enable mouse support set -s escape-time 0 # Delay after escape @@ -15,7 +13,6 @@ set -g renumber-windows on # Make windows auto renumber set -g history-limit 10000 # Scroll back history - setw -g aggressive-resize on # Resize windows on diff clients set -g display-panes-time 4000 # Increase show pane time diff --git a/home/user/.config/tmux/style.conf b/home/user/.config/tmux/style.conf index 428dff6..d398e95 100644 --- a/home/user/.config/tmux/style.conf +++ b/home/user/.config/tmux/style.conf @@ -20,7 +20,7 @@ set -g set-titles-string '#S:#I.#P #W' # clock style -setw -g clock-mode-colour green +setw -g clock-mode-colour white setw -g clock-mode-style 24 set -g bell-action none