Simplify activity monitoring by disabling it in lazygit project templates
Replace complex tmux hooks with targeted solution: - Disable activity monitoring in basic.sh for git window (lazygit) - Disable activity monitoring in research.sh for both code-git and paper-git windows - Remove unreliable program detection hooks from tmux config - Keep manual toggle (Ctrl+a A) for user control This approach is simpler, more reliable, and directly addresses the root cause of noisy activity notifications from project templates. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
e1beff433e
commit
0acbb7fca2
3 changed files with 3 additions and 19 deletions
|
|
@ -97,25 +97,6 @@
|
|||
setw -g monitor-activity on
|
||||
set -g visual-activity off
|
||||
|
||||
# Smart activity monitoring - disable for noisy programs
|
||||
set-hook -g after-new-window {
|
||||
if -F '#{||:#{||:#{||:#{||:#{==:#{pane_current_command},lazygit},#{==:#{pane_current_command},btop}},#{==:#{pane_current_command},htop}},#{==:#{pane_current_command},watch}},#{==:#{pane_current_command},tail}}' {
|
||||
setw monitor-activity off
|
||||
}
|
||||
}
|
||||
|
||||
set-hook -g window-pane-changed {
|
||||
if -F '#{||:#{||:#{||:#{||:#{==:#{pane_current_command},lazygit},#{==:#{pane_current_command},btop}},#{==:#{pane_current_command},htop}},#{==:#{pane_current_command},watch}},#{==:#{pane_current_command},tail}}' {
|
||||
setw monitor-activity off
|
||||
} {
|
||||
setw monitor-activity on
|
||||
}
|
||||
}
|
||||
|
||||
set-hook -g pane-exited {
|
||||
setw monitor-activity on
|
||||
}
|
||||
|
||||
# Manual toggle for activity monitoring
|
||||
bind A setw monitor-activity \; display-message "Activity monitoring: #{?monitor-activity,ON,OFF}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue