commit 0e9dda02679636d7836fa8f204108ae047df7ffb
parent 7462972148b786884ca8054c05b44e95a0566aa3
Author: Bharatvaj <bharatvaj@yahoo.com>
Date: Thu, 31 Mar 2022 14:50:35 +0530
Use red as the indicator of activeness in tmux
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
@@ -5,8 +5,9 @@ set -g set-titles on
# Status bar
set -g status-position top
+set -g status-justify absolute-centre
set -g status-right ""
-
+set -g status-keys vi
bind v split-window -h
bind s split-window -v
@@ -33,12 +34,14 @@ bind -T copy-mode-vi y send-keys -X copy-selection-and-cancel
set-option -g mouse on
setw -g mode-keys vi
set-option -s set-clipboard off
+bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
bind P paste-buffer
# Themes
set -g status-bg black
set -g status-fg white
-set -g window-status-current-style "bg=white,fg=black"
+set -g window-status-current-style "bg=black,fg=red"
+set -g pane-active-border-style "fg=red"
# Smart pane switching with awareness of Vim splits.
# See: https://github.com/christoomey/vim-tmux-navigator
@@ -59,3 +62,4 @@ bind-key -T copy-mode-vi 'C-j' select-pane -D
bind-key -T copy-mode-vi 'C-k' select-pane -U
bind-key -T copy-mode-vi 'C-l' select-pane -R
bind-key -T copy-mode-vi 'C-\' select-pane -l
+bind R source-file ~/.config/tmux/tmux.conf