From b132bb60c48f1fa8fcf4d6a74f255ffcfae35d9b Mon Sep 17 00:00:00 2001 From: pr0c3550r Date: Sat, 26 Aug 2023 01:14:27 +0200 Subject: [PATCH] Tmux: updated keymaps and global settings --- shell/.config/shell/aliasrc | 3 +++ tmux/.config/tmux/tmux.conf | 14 ++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/shell/.config/shell/aliasrc b/shell/.config/shell/aliasrc index a0a9d1c..14918bf 100644 --- a/shell/.config/shell/aliasrc +++ b/shell/.config/shell/aliasrc @@ -66,6 +66,9 @@ alias \ alias \ t="tmux" \ ta="tmux new -A -s" \ + tn="tmux new-session -t" + +alias \ v="$EDITOR" \ e="$EDITOR" \ z="zathura" \ diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf index 470db45..5265b96 100644 --- a/tmux/.config/tmux/tmux.conf +++ b/tmux/.config/tmux/tmux.conf @@ -18,6 +18,8 @@ unbind '"' bind '\' split-window -h -c '#{pane_current_path}' bind - split-window -v -c '#{pane_current_path}' +bind c new-window -c '#{pane_current_path}' + bind -r h select-pane -L bind -r j select-pane -D bind -r k select-pane -U @@ -34,6 +36,8 @@ bind -r p previous-window bind X confirm kill-window bind T confirm kill-session +bind M set -g mouse + set -g pane-border-indicators colour set -g pane-active-border-style fg="#d8a657",bg=default set -g pane-border-style fg="#1d2021",bg=default @@ -50,13 +54,19 @@ set -g display-panes-time 10000 set -g window-size largest set -g renumber-windows on +set -g base-index 1 +setw -g pane-base-index 1 + set -g status-position bottom set -g status-style bg="#1d2021",fg="#d4be98",bold set -g status-keys vi # set -g status-right '#{?client_prefix,#[fg=#000000]#[bg=#fabd2f]#[bold] PREFIX ,}' -set -g status-right '#{?client_prefix,#[fg=#000000]#[bg=#fabd2f]#[bold]  ,}' +set -g status-right '#{?client_prefix,#[fg=#000000]#[bg=#fabd2f]#[bold]  ,}' +set -wg window-status-current-style bg="#d8a657",fg="#1d2021" set -g cursor-style blinking-underline set -g focus-events on -set-window-option -g window-status-current-style bg="#d8a657",fg="#1d2021" +set -g visual-bell off + +set -g mouse on