From 83883021429972895654e99542ec1abf6ae2fae6 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Thu, 11 Feb 2021 13:25:27 -0700 Subject: Add hooks and focus events --- stow/tmux/.tmux.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stow/tmux/.tmux.conf b/stow/tmux/.tmux.conf index 9c9d5bf..f106924 100644 --- a/stow/tmux/.tmux.conf +++ b/stow/tmux/.tmux.conf @@ -56,8 +56,6 @@ bind C-w run-shell "~/.tmux/scripts/window_renum" # Help with the color problems set -g default-terminal "screen-256color" -# Mouse Scrolling -set-option -g mouse on # Use vim keybindings in copy mode and help menus setw -g mode-keys vi # Set the display panes timeout @@ -86,6 +84,9 @@ set-option -g status-justify "centre" set-option -g status-left-length 110 set-option -g status-left "#S [#H]" set-option -g status-right "#{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,}\"#{=21:pane_title}\" %H:%M %Y-%m-%d" +set-option -g focus-events on +# Log focus to file +set-hook -g pane-focus-in 'run "echo I #{pane_id} $(date) >>/tmp/focus"' # List of plugins set -g @plugin 'tmux-plugins/tpm' -- cgit v1.2.3