aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Hiar <cody@hiar.ca>2021-02-11 13:25:27 -0700
committerCody Hiar <cody@hiar.ca>2021-02-11 13:25:42 -0700
commit83883021429972895654e99542ec1abf6ae2fae6 (patch)
treecdd672f6ff6bec41986467a58ef056b85abea00b
parent8c14f2b3a2568b686fc50932bbfde9f4523817cc (diff)
Add hooks and focus events
-rw-r--r--stow/tmux/.tmux.conf5
1 files 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'