commit de5e969c684c8d6a8eff45a3d5ded45724bd5601
parent 10e1954f91f9644437b026de33aa72ebe8449a19
Author: Alex Balgavy <alex@balgavy.eu>
Date: Mon, 15 Feb 2021 10:26:38 +0100
tmux: renumber windows automatically
Also swapping windows now stays on that window after swapping.
Diffstat:
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/tmux/tmux-dark.conf b/tmux/tmux-dark.conf
@@ -21,6 +21,7 @@ set -g status-right-length 60
set -g status-right '#[fg=#557983,bold] »» Sesh #S | #(battery -p)%% | %R (%b %d, %a)#[default]'
set -g visual-activity on
set -g base-index 1 # start numbering windows at 1, easier to reach
+set -g renumber-windows on
set -s escape-time 0
# }}}
# Window options {{{
@@ -92,6 +93,8 @@ unbind H
unbind L
bind -r L swap-window -t +1
bind -r H swap-window -t -1
+bind -r L swap-window -t +1 \; next-window
+bind -r H swap-window -t -1 \; previous-window
# Rotate the layout of panes
unbind C-o
diff --git a/tmux/tmux-light.conf b/tmux/tmux-light.conf
@@ -21,6 +21,7 @@ set -g status-right-length 60
set -g status-right "#[fg=#4477ff,bold] »» Sesh #S | #(battery -p)%% | %R (%b %d, %a)#[default]"
set -g visual-activity on
set -g base-index 1 # start numbering windows at 1, easier to reach
+set -g renumber-windows on
set -s escape-time 0
# }}}
# Window options {{{
@@ -89,8 +90,8 @@ bind C-k next-window
# Moving windows
unbind H
unbind L
-bind -r L swap-window -t +1
-bind -r H swap-window -t -1
+bind -r L swap-window -t +1 \; next-window
+bind -r H swap-window -t -1 \; previous-window
# Rotate the layout of panes
unbind C-o